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


IMapServerLayer.ServerConnect 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.ServerConnect Method
ArcGIS Developer Help

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