Skip to main content Skip to complementary content

GetConnectionAsync Method

Overloads

GetConnectionAsync(String)

Retrieves a connection and returns:

* The creation time of the connection.

* The identifier of the connection.

* The type of the connection.

* The name of the connection.

* The connection string.

GetConnectionAsync(AsyncHandle, String)

Retrieves a connection and returns:

* The creation time of the connection.

* The identifier of the connection.

* The type of the connection.

* The name of the connection.

* The connection string.

GetConnectionAsync<T>(AsyncHandle, Func<Response, T>, String)

Retrieves a connection and returns:

* The creation time of the connection.

* The identifier of the connection.

* The type of the connection.

* The name of the connection.

* The connection string.

GetConnectionAsync(String)

Retrieves a connection and returns:

  • The creation time of the connection.
  • The identifier of the connection.
  • The type of the connection.
  • The name of the connection.
  • The connection string.

Declaration

      Task<Connection> GetConnectionAsync([QixName("qConnectionId")] string connectionId)
    

Parameters

Type Name Description
System.String connectionId

Identifier of the connection.

Returns

Type Description
System.Threading.Tasks.Task<Connection>

GetConnectionAsync(AsyncHandle, String)

Retrieves a connection and returns:

  • The creation time of the connection.
  • The identifier of the connection.
  • The type of the connection.
  • The name of the connection.
  • The connection string.

Declaration

      Task<Connection> GetConnectionAsync(AsyncHandle asyncHandle, [QixName("qConnectionId")] string connectionId)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.String connectionId

Identifier of the connection.

Returns

Type Description
System.Threading.Tasks.Task<Connection>

GetConnectionAsync<T>(AsyncHandle, Func<Response, T>, String)

Retrieves a connection and returns:

  • The creation time of the connection.
  • The identifier of the connection.
  • The type of the connection.
  • The name of the connection.
  • The connection string.

Declaration

      Task<T> GetConnectionAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qConnectionId")] string connectionId)
    

Parameters

Type Name Description
AsyncHandle asyncHandle

Handle to asynchronous method request

System.Func<Response, T> onResult

Continuation function

System.String connectionId

Identifier of the connection.

Returns

Type Description
System.Threading.Tasks.Task<T>

Type Parameters

Name Description
T

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!