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 VARIANT_BOOL

Product Availability

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

See Also

IMSDHelper Interface