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


IMapServerRESTLayer.Connect Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerRESTLayer Interface > IMapServerRESTLayer.Connect Method
ArcGIS Developer Help

IMapServerRESTLayer.Connect Method

Connects to a MapService using a REST URL.

[Visual Basic .NET]
Public Sub Connect ( _
    ByVal restUrl As String _
)
[C#]
public void Connect (
    string restUrl
);
[C++]
HRESULT Connect(
  BSTR restUrl
);
[C++]
Parameters
restUrl [in]

restUrl is a parameter of type BSTR

Product Availability

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

See Also

IMapServerRESTLayer Interface