ArcObjects Library Reference (Carto)  

IDataSourceHelperMapDocument.FindAndReplaceWorkspaceNamePath Method

String version of ReplaceWorkspaceName. Also does find and replace of parts of the workspace path name.

[Visual Basic .NET]
Public Sub FindAndReplaceWorkspaceNamePath ( _
    ByVal pMapDocument As IMapDocument, _
    ByVal oldWorkspaceName As String, _
    ByVal newWorkspaceName As String, _
    ByVal Validate As Boolean _
)
[C#]
public void FindAndReplaceWorkspaceNamePath (
    IMapDocument pMapDocument,
    string oldWorkspaceName,
    string newWorkspaceName,
    bool Validate
);
[C++]
HRESULT FindAndReplaceWorkspaceNamePath(
  IMapDocument* pMapDocument,
  BSTR oldWorkspaceName,
  BSTR newWorkspaceName,
  VARIANT_BOOL Validate
);
[C++]

Parameters

pMapDocument [in]

  pMapDocument is a parameter of type IMapDocument

oldWorkspaceName [in]   oldWorkspaceName is a parameter of type BSTR newWorkspaceName [in]   newWorkspaceName is a parameter of type BSTR Validate [in]   Validate is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IDataSourceHelperMapDocument Interface