TdsQueryResult Class
Represents the response from a query callback.
public sealed class TdsQueryResultConstructors
| Name | Description |
|---|---|
| TdsQueryResult() |
TdsQueryResult()
TdsQueryResult.cspublic TdsQueryResult()No documentation is available.
Properties
| Name | Description |
|---|---|
| Error | Gets or sets the error to return. When set, result sets, output parameters and the return value are ignored. |
| InfoMessages | Gets the informational messages to emit before result sets. |
| OutputParameters | Gets the values of the output parameters. The client assigns each value to the Output or InputOutput parameter with the same name; values without a matching parameter are ignored. |
| RecordsAffected | Gets or sets the number of rows affected by the request, as returned by SqlCommand.ExecuteNonQuery. When null, no count is sent and ExecuteNonQuery returns -1. The rows of TdsQueryResult.ResultSets are not counted, as SQL Server does for SELECT statements. |
| ResultSets | Gets the result sets to serialize. |
| ReturnValue | Gets or sets the return status of a stored procedure, read by a SqlParameter whose direction is ReturnValue. When null, no return status is sent. |
Error
TdsQueryResult.csGets or sets the error to return. When set, result sets, output parameters and the return value are ignored.
public TdsQueryError? Error { get; set; }Property value
InfoMessages
TdsQueryResult.csGets the informational messages to emit before result sets.
public Collection<string> InfoMessages { get; }Property value
OutputParameters
TdsQueryResult.csGets the values of the output parameters. The client assigns each value to the Output or InputOutput parameter with the same name; values without a matching parameter are ignored.
public Collection<TdsOutputParameter> OutputParameters { get; }Property value
RecordsAffected
TdsQueryResult.csGets or sets the number of rows affected by the request, as returned by SqlCommand.ExecuteNonQuery. When null, no count is sent and ExecuteNonQuery returns -1. The rows of TdsQueryResult.ResultSets are not counted, as SQL Server does for SELECT statements.
public long? RecordsAffected { get; set; }Property value
ResultSets
TdsQueryResult.csReturnValue
TdsQueryResult.csMethods
| Name | Description |
|---|---|
| FromError(TdsQueryError) | Creates an error query result. |
FromError(TdsQueryError)
TdsQueryResult.csCreates an error query result.
public static TdsQueryResult FromError(TdsQueryError error)