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

IMSDHelper.ReplaceAll Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMSDHelper Interface > IMSDHelper.ReplaceAll Method
ArcGIS Developer Help

IMSDHelper.ReplaceAll Method

Replaces the workspace connection string for all layers in the given map.

[Visual Basic .NET]
Public Sub ReplaceAll ( _
    ByVal mapPath As String, _
    ByVal oldWorkspaceConnectionString As String, _
    ByVal newWorkspaceConnectionString As String, _
    ByVal validate As Boolean _
public void ReplaceAll (
    string mapPath,
    string oldWorkspaceConnectionString,
    string newWorkspaceConnectionString,
    bool validate
HRESULT ReplaceAll(
  BSTR mapPath,
  BSTR oldWorkspaceConnectionString,
  BSTR newWorkspaceConnectionString,
  VARIANT_BOOL validate
mapPath [in]

mapPath is a parameter of type BSTR oldWorkspaceConnectionString [in]
oldWorkspaceConnectionString is a parameter of type BSTR newWorkspaceConnectionString [in]
newWorkspaceConnectionString 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

IMSDHelper Interface