TdsOutputParameter Class

Represents the value of an output parameter sent back to the client.

public sealed class TdsOutputParameter

Constructors

NameDescription
TdsOutputParameter(string, TdsColumnType, object?)Initializes a new instance of the TdsOutputParameter class.

TdsOutputParameter(string, TdsColumnType, object?)

TdsOutputParameter.cs

Initializes a new instance of the TdsOutputParameter class.

public TdsOutputParameter(string name, TdsColumnType type, object? value)

Parameters

name string
The parameter name, with or without the leading @.
type TdsColumnType
The type of the value.
value object?
The value, or null for SQL NULL.

Properties

NameDescription
NameGets the parameter name.
TypeGets the type of the value.
ValueGets the value. null and DBNull.Value are sent as SQL NULL.

Gets the parameter name.

public string Name { get; }

Property value

string

Gets the type of the value.

public TdsColumnType Type { get; }

Property value

TdsColumnType

Gets the value. null and DBNull.Value are sent as SQL NULL.

public object? Value { get; }

Property value

object?