DatasetQuery.SelectCommandWithStatusAsync Method

Executes an asynchronous Select command according to the SqlStatement, and displays status information.
<ID("SelectCommandWithStatusAsync", (int)e.SelectCommandWithStatusAsync)> _ 
Public Function SelectCommandWithStatusAsync( _ 
ByVal status As TRef<int>
) As Task(Of DataTable)
This language is not supported or no code example is available.
[ID("SelectCommandWithStatusAsync", (int)e.SelectCommandWithStatusAsync)] 
public Task<DataTable> SelectCommandWithStatusAsync( 
TRef<int> status 
)
This language is not supported or no code example is available.

Parameters

status
TRef<int>

Return Value

Task<DataTable>

System.Data.DataTable or null

Remarks
 
The tags configured in the mapping column will receive the value of the first row.

Parameters

message with the status of the select command

Example
 
C# Example:
 TRef<int> status = new TRef<int>();
 DataTable dataTable;
 dataTable = await @Dataset.Query.query1.SelectCommandWithStatusAsync(status);
 if (status.Value == 0 && dataTable != null && dataTable.Rows.Count > 0)
 {
     @Tag.firstItem = dataTable.Rows[0]["Item"].ToString();
 }
 					

.NET Framework

Supported in: 4.8

In this article

Definition