TdsQueryContext Class

Provides query execution context for a TDS request.

public sealed class TdsQueryContext

Constructors

NameDescription
TdsQueryContext()

TdsQueryContext()

TdsQueryContext.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public TdsQueryContext()

No documentation is available.

Properties

NameDescription
CommandTextGets the SQL text for SQL batch requests, when available.
HasCompleteParametersGets a value indicating whether every parameter sent by the client was decoded. This is false when TdsQueryContext.Parameters is truncated because the client sent a parameter whose type the server cannot decode, or because the payload was malformed. Requests with incomplete parameters should be rejected rather than acted on, because the missing values are silent.
ParametersGets the decoded RPC parameters.
ProcedureNameGets the RPC procedure name for RPC requests, when available.
RemoteEndPointGets the remote endpoint of the client.
RequestTypeGets the type of query request.
TransactionIdGets the identifier of the transaction the request runs in, or null when the connection has no active transaction. See TdsTransactionContext.TransactionId.
UserContextGets the authenticated user context associated with this query request.

Gets the SQL text for SQL batch requests, when available.

public string? CommandText { get; init; }

Property value

string?

HasCompleteParameters

TdsQueryContext.cs

Gets a value indicating whether every parameter sent by the client was decoded. This is false when TdsQueryContext.Parameters is truncated because the client sent a parameter whose type the server cannot decode, or because the payload was malformed. Requests with incomplete parameters should be rejected rather than acted on, because the missing values are silent.

public bool HasCompleteParameters { get; init; }

Property value

bool

Gets the decoded RPC parameters.

public IReadOnlyList<TdsQueryParameter> Parameters { get; init; }

ProcedureName

TdsQueryContext.cs

Gets the RPC procedure name for RPC requests, when available.

public string? ProcedureName { get; init; }

Property value

string?

RemoteEndPoint

TdsQueryContext.cs

Gets the remote endpoint of the client.

public required EndPoint RemoteEndPoint { get; init; }

Property value

EndPoint

Gets the type of query request.

public required TdsQueryRequestType RequestType { get; init; }

Property value

TdsQueryRequestType

TransactionId

TdsQueryContext.cs

Gets the identifier of the transaction the request runs in, or null when the connection has no active transaction. See TdsTransactionContext.TransactionId.

public long? TransactionId { get; init; }

Property value

long?

Gets the authenticated user context associated with this query request.

public ClaimsPrincipal? UserContext { get; init; }

Property value

ClaimsPrincipal?