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


IDataSourceHelperMap.ReplaceWorkspaceName Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataSourceHelperMap Interface > IDataSourceHelperMap.ReplaceWorkspaceName Method
ArcGIS Developer Help

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 bool

Product Availability

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

See Also

IDataSourceHelperMap Interface