TdsQueryResult Class

Represents the response from a query callback.

public sealed class TdsQueryResult

Constructors

NameDescription
TdsQueryResult()

TdsQueryResult()

TdsQueryResult.cs
public TdsQueryResult()

No documentation is available.

Properties

NameDescription
ErrorGets or sets the error to return. When set, result sets, output parameters and the return value are ignored.
InfoMessagesGets the informational messages to emit before result sets.
OutputParametersGets 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.
RecordsAffectedGets 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.
ResultSetsGets the result sets to serialize.
ReturnValueGets or sets the return status of a stored procedure, read by a SqlParameter whose direction is ReturnValue. When null, no return status is sent.

Gets 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

TdsQueryError?

InfoMessages

TdsQueryResult.cs

Gets the informational messages to emit before result sets.

public Collection<string> InfoMessages { get; }

Property value

Collection<string>

OutputParameters

TdsQueryResult.cs

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.

public Collection<TdsOutputParameter> OutputParameters { get; }

RecordsAffected

TdsQueryResult.cs

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.

public long? RecordsAffected { get; set; }

Property value

long?

Gets the result sets to serialize.

public Collection<TdsResultSet> ResultSets { get; }

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.

public int? ReturnValue { get; set; }

Property value

int?

Methods

NameDescription
FromError(TdsQueryError)Creates an error query result.

FromError(TdsQueryError)

TdsQueryResult.cs

Creates an error query result.

public static TdsQueryResult FromError(TdsQueryError error)

Parameters

error TdsQueryError

Returns

TdsQueryResult