This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDataSourceHelperMap Interface > IDataSourceHelperMap.ReplaceWorkspaceName Method (ArcObjects .NET 10.4 SDK) |
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