This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMSDHelper Interface > IMSDHelper.PutWorkspaceConnectionStringInLayer Method (ArcObjects .NET 10.4 SDK) |
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 VARIANT_BOOL