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


IServer.CreateConnection Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (TrackingAnalyst)  

IServer.CreateConnection Method

Creates a server connection.

[Visual Basic .NET]
Public Function createConnection ( _
    ByVal cName As String, _
    ByVal cUserName As String, _
    ByVal cPassword As String, _
    ByVal cConnectionString As String _
) As IConnection
[C#]
public IConnection createConnection (
    string cName,
    string cUserName,
    string cPassword,
    string cConnectionString
);
[C++]
HRESULT createConnection(
  BSTR cName,
  BSTR cUserName,
  BSTR cPassword,
  BSTR cConnectionString,
  IConnection** ppiConnection
);
[C++]

Parameters cName [in] cName is a parameter of type BSTR cUserName [in] cUserName is a parameter of type BSTR cPassword [in] cPassword is a parameter of type BSTR cConnectionString [in] cConnectionString is a parameter of type BSTR ppiConnection [out, retval]
ppiConnection is a parameter of type IConnection

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Tracking Analyst Extension.

See Also

IServer Interface