ArcObjects Library Reference (Carto)  

IMapServerLayer.ServerConnect Method

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

Product Availability

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

See Also

IMapServerLayer Interface