ESRI.ArcGIS.ADF.Connection
AGSServerConnection Constructor(String,Identity,Boolean,Boolean)
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF.Connection.AGS Namespace > AGSServerConnection Class > AGSServerConnection Constructor : AGSServerConnection Constructor(String,Identity,Boolean,Boolean)




host
Host name of machine where the ArcGIS Server Object Manager exists
identity
Identity with username and password for the server.
connect
Indicates whether to connect on initialization.
releaseServerOnDispose
Indicates if Dispose should also release the RCWs for the ServerObjectManager and the ServerObjectAdmin.
Initializes a new instance of the AGSServerConnection class with the specified parameters

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal host As String, _
   ByVal identity As Identity, _
   ByVal connect As Boolean, _
   ByVal releaseServerOnDispose As Boolean _
)
Visual Basic (Usage)Copy Code
Dim host As String
Dim identity As Identity
Dim connect As Boolean
Dim releaseServerOnDispose As Boolean
 
Dim instance As AGSServerConnection(host, identity, connect, releaseServerOnDispose)
C# 
public AGSServerConnection( 
   string host,
   Identity identity,
   bool connect,
   bool releaseServerOnDispose
)

Parameters

host
Host name of machine where the ArcGIS Server Object Manager exists
identity
Identity with username and password for the server.
connect
Indicates whether to connect on initialization.
releaseServerOnDispose
Indicates if Dispose should also release the RCWs for the ServerObjectManager and the ServerObjectAdmin.

See Also

© 2010 All Rights Reserved.