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


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

IMapServerLayer.GetConnectionInfo Method

Returns information about a connection to a map server object or to a map document.

[Visual Basic .NET]
Public Sub GetConnectionInfo ( _
    ByRef soName As IAGSServerObjectName, _
    ByRef docLocation As String, _
    ByRef MapName As String _
)
[C#]
public void GetConnectionInfo (
    ref IAGSServerObjectName soName,
    ref string docLocation,
    ref string MapName
);
[C++]
HRESULT GetConnectionInfo(
  IAGSServerObjectName** soName,
  System.String* docLocation,
  System.String* MapName
);
[C++]
Parameters
soName [out]

soName is a parameter of type IAGSServerObjectName** docLocation [out]
docLocation is a parameter of type BSTR* MapName [out]
MapName is a parameter of type BSTR*

Product Availability

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

Remarks

If the connection is to a MapServer object, the GetConnectionInfo method returns the AGSServerObjectName and the name of the data frame. If the connection is made to a map document (.mxd of .pmf), this method returns the location of the map document and the name of the data frame.

See Also

IMapServerLayer Interface