Returns information about a connection to a map server object or to a map document.
[Visual Basic 6.0] Sub GetConnectionInfo(
soName As IAGSServerObjectName, _
docLocation As String, _
MapName As String _
)
[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 );
[Java] public void getConnectionInfo ( IAGSServerObjectName soName, String docLocation, String MapName ) throws IOException, AutomationException
[C++] HRESULT GetConnectionInfo( IAGSServerObjectName** soName, BSTR* docLocation, BSTR* MapName );
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.