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

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

IDataSourceHelperLayer.FindAndReplaceWorkspaceNamePath Method

Replaces the layer's workspace path name with the given workspace path name; Also does find and replace of parts of the workspace path name.

[Visual Basic .NET]
Public Sub FindAndReplaceWorkspaceNamePath ( _
    ByVal pLayer As ILayer, _
    ByVal oldWorkspaceName As String, _
    ByVal newWorkspaceName As String, _
    ByVal validate As Boolean _
public void FindAndReplaceWorkspaceNamePath (
    ILayer pLayer,
    string oldWorkspaceName,
    string newWorkspaceName,
    bool validate
HRESULT FindAndReplaceWorkspaceNamePath(
  ILayer* pLayer,
  BSTR oldWorkspaceName,
  BSTR newWorkspaceName,
  VARIANT_BOOL validate
pLayer [in]

pLayer is a parameter of type ILayer* 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 bool

Product Availability

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

See Also

IDataSourceHelperLayer Interface