This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerLayer Interface > IMapServerLayer.ServerConnect Method (ArcObjects .NET 10.4 SDK) |
Connects to map server object specified by the AGSServerObject name for a MapServer server object and the name of a data frame.
[Visual Basic .NET] Public Sub ServerConnect ( _ ByVal soName As IAGSServerObjectName, _ ByVal MapName As String _ )
[C#] public void ServerConnect ( IAGSServerObjectName soName, string MapName );
[C++]
HRESULT ServerConnect(
IAGSServerObjectName* soName,
BSTR MapName
);
[C++]
Parameters soName [in]
soName is a parameter of type IAGSServerObjectName MapName [in] MapName is a parameter of type BSTR