CreateConnectionAsync Method
Overloads
| CreateConnectionAsync(Connection) |
Creates a connection. A connection indicates from which data source the data should be taken. |
|
| CreateConnectionAsync(AsyncHandle, Connection) |
Creates a connection. A connection indicates from which data source the data should be taken. |
|
| CreateConnectionAsync<T>(AsyncHandle, Func<Response, T>, Connection) |
Creates a connection. A connection indicates from which data source the data should be taken. |
CreateConnectionAsync(Connection)
Creates a connection.
A connection indicates from which data source the data should be taken.
Declaration
public Task<string> CreateConnectionAsync([QixName("qConnection")] Connection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| Connection | connection |
Information about the connection. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> |
Implements
CreateConnectionAsync(AsyncHandle, Connection)
Creates a connection.
A connection indicates from which data source the data should be taken.
Declaration
public Task<string> CreateConnectionAsync(AsyncHandle asyncHandle, [QixName("qConnection")] Connection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncHandle | asyncHandle |
Handle to asynchronous method request |
| Connection | connection |
Information about the connection. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<System.String> |
Implements
CreateConnectionAsync<T>(AsyncHandle, Func<Response, T>, Connection)
Creates a connection.
A connection indicates from which data source the data should be taken.
Declaration
public Task<T> CreateConnectionAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult, [QixName("qConnection")] Connection connection)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncHandle | asyncHandle |
Handle to asynchronous method request |
| System.Func<Response, T> | onResult |
Continuation function |
| Connection | connection |
Information about the connection. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T |