ESRI.ArcGIS.ADF.Connection
CreateServerConnection Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF.Connection.AGS Namespace > AGSServerConnectionFactory Class : CreateServerConnection Method




connectionString
Contains the name of the ArcGIS host.
identity
The identity with credentials for connecting to the ArcGIS Server.
Returns an ArcGIS Server connection instance.

Syntax

Visual Basic (Declaration) 
Public Function CreateServerConnection( _
   ByVal connectionString As String, _
   ByVal identity As Identity _
) As IServerConnection
Visual Basic (Usage)Copy Code
Dim instance As AGSServerConnectionFactory
Dim connectionString As String
Dim identity As Identity
Dim value As IServerConnection
 
value = instance.CreateServerConnection(connectionString, identity)
C# 
public IServerConnection CreateServerConnection( 
   string connectionString,
   Identity identity
)

Parameters

connectionString
Contains the name of the ArcGIS host.
identity
The identity with credentials for connecting to the ArcGIS Server.

Return Value

Server connection instance type-casted to IServerConnection.

See Also

© 2010 All Rights Reserved.