ArcObjects Library Reference (Server)  

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

In order 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

.NET Samples

Closest facility application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ClosestFacility_GISServerAPIClass) | Publish an image service and set configurations (Code Files: ISConfig) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) | Service area application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ServiceArea_GISServerAPIClass) |

.NET Related Topics

Server | Server object extensions (SOE) |