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


IMSDHelper.ReplaceAll Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

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 _
)
[C#]
public void ReplaceAll (
    string mapPath,
    string oldWorkspaceConnectionString,
    string newWorkspaceConnectionString,
    bool validate
);
[C++]
HRESULT ReplaceAll(
  BSTR mapPath,
  BSTR oldWorkspaceConnectionString,
  BSTR newWorkspaceConnectionString,
  VARIANT_BOOL validate
);
[C++]

Parameters 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