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


IGISServerConnection.Connect Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Server > ESRI.ArcGIS.Server > Interfaces > IG > IGISServerConnection Interface > IGISServerConnection.Connect Method
ArcGIS Developer Help

IGISServerConnection.Connect Method

Connects to the GIS server specified by the machineName.

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

MachineName is a parameter of type BSTR

Product Availability

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

Remarks

To succesfully connect to the ArcGIS Server using the Connect method on IGISServerConnection, the user account running the application must be a member of the agsusers user group on the ArcGIS Server.

See Also

IGISServerConnection Interface