ESRI.ArcGIS.ADF.Connection
Connection Constructor(ConnectionMode,Identity,Int32,Int32)
See Also  Send Feedback
ESRI.ArcGIS.ADF.Connection Namespace > Connection Class > Connection Constructor : Connection Constructor(ConnectionMode,Identity,Int32,Int32)




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 applciation requests.
maxAttempts
Number of times a failed connection is retried before marking as dead.
Overloaded - Constructor with connection mode and identity.

Syntax

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

Parameters

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 applciation requests.
maxAttempts
Number of times a failed connection is retried before marking as dead.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.