This document is archived and information here might be outdated. Recommended version. |
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*
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.