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

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

IGISServerConnection2.Connect2 Method

Connects the user specified by userInfo to the GIS server given by machineName.

[Visual Basic .NET]
Public Sub Connect2 ( _
    ByVal UserInfo As String, _
    ByVal MachineName As String _
public void Connect2 (
    string UserInfo,
    string MachineName
HRESULT Connect2(
  BSTR UserInfo,
  BSTR MachineName
UserInfo [in]

UserInfo is a parameter of type BSTR MachineName [in]
MachineName is a parameter of type BSTR

Product Availability

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

See Also

IGISServerConnection2 Interface