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




name
The name of a machine that contains an ArcGIS Server Object Manager
mode
ConnectionMode (Default, Failover, RoundRobin).
identity
Identity used to connect to the data source.
failedCheckInterval
Interval number used to check between failed connection attempts. This # is per application request.
maxAttempts
Number of times a failed connection is retried before marking as dead.
Overloaded - Constructor with server name, connection mode, and identity.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal name As String, _
   ByVal mode As ConnectionMode, _
   ByVal identity As Identity, _
   ByVal failedCheckInterval As Integer, _
   ByVal maxAttempts As Integer _
)
Visual Basic (Usage)Copy Code
Dim name As String
Dim mode As ConnectionMode
Dim identity As Identity
Dim failedCheckInterval As Integer
Dim maxAttempts As Integer
 
Dim instance As Connection(name, mode, identity, failedCheckInterval, maxAttempts)
C# 
public Connection( 
   string name,
   ConnectionMode mode,
   Identity identity,
   int failedCheckInterval,
   int maxAttempts
)

Parameters

name
The name of a machine that contains an ArcGIS Server Object Manager
mode
ConnectionMode (Default, Failover, RoundRobin).
identity
Identity used to connect to the data source.
failedCheckInterval
Interval number used to check between failed connection attempts. This # is per application request.
maxAttempts
Number of times a failed connection is retried before marking as dead.

See Also

© 2010 All Rights Reserved.