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


IMSDHelper.PutWorkspaceConnectionStringInLayer 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.PutWorkspaceConnectionStringInLayer Method
ArcGIS Developer Help

IMSDHelper.PutWorkspaceConnectionStringInLayer Method

Given the layer's catalog path, updates its workspace connection string.

[Visual Basic .NET]
Public Sub PutWorkspaceConnectionStringInLayer ( _
    ByVal layerPath As String, _
    ByVal workspaceConnectionString As String, _
    ByVal validate As Boolean _
)
[C#]
public void PutWorkspaceConnectionStringInLayer (
    string layerPath,
    string workspaceConnectionString,
    bool validate
);
[C++]
HRESULT PutWorkspaceConnectionStringInLayer(
  BSTR layerPath,
  BSTR workspaceConnectionString,
  VARIANT_BOOL validate
);
[C++]
Parameters
layerPath [in]

layerPath is a parameter of type BSTR workspaceConnectionString [in]
workspaceConnectionString 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