This document is archived and information here might be outdated.  Recommended version.


IDataSourceHelperMap.ReplaceWorkspaceName Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IDataSourceHelperMap.ReplaceWorkspaceName Method

Replaces all layers having matching workspace path names with the new workspace name object.

[Visual Basic .NET]
Public Sub ReplaceWorkspaceName ( _
    ByVal pBasicMap As IBasicMap, _
    ByVal pOldWorkspaceName As IWorkspaceName, _
    ByVal pNewWorkspaceName As IWorkspaceName, _
    ByVal validate As Boolean _
)
[C#]
public void ReplaceWorkspaceName (
    IBasicMap pBasicMap,
    IWorkspaceName pOldWorkspaceName,
    IWorkspaceName pNewWorkspaceName,
    bool validate
);
[C++]
HRESULT ReplaceWorkspaceName(
  IBasicMap* pBasicMap,
  IWorkspaceName* pOldWorkspaceName,
  IWorkspaceName* pNewWorkspaceName,
  VARIANT_BOOL validate
);
[C++]

Parameters pBasicMap [in]
pBasicMap is a parameter of type IBasicMap pOldWorkspaceName [in]
pOldWorkspaceName is a parameter of type IWorkspaceName pNewWorkspaceName [in]
pNewWorkspaceName is a parameter of type IWorkspaceName validate [in] validate is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

IDataSourceHelperMap Interface