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


IIMSMapLayer.ConnectToService Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > II > IIMSMapLayer Interface > IIMSMapLayer.ConnectToService Method
ArcGIS Developer Help

IIMSMapLayer.ConnectToService Method

Connects to the map service with the given server url.

[Visual Basic .NET]
Public Sub ConnectToService ( _
    ByVal Service As IIMSServiceDescription _
)
[C#]
public void ConnectToService (
    IIMSServiceDescription Service
);
[C++]
HRESULT ConnectToService(
  IIMSServiceDescription* Service
);
[C++]
Parameters
Service [in]

Service is a parameter of type IIMSServiceDescription*

Product Availability

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

See Also

IIMSMapLayer Interface