Share via


SqlVector<T>.CreateNull(Int32) Method

Definition

Constructs a null vector of the given length. SQL Server requires vector arguments to specify their length even when null.

public:
 static Microsoft::Data::SqlTypes::SqlVector<T> CreateNull(int length);
public static Microsoft.Data.SqlTypes.SqlVector<T> CreateNull(int length);
static member CreateNull : int -> Microsoft.Data.SqlTypes.SqlVector<'T (requires 'T : struct)>
Public Shared Function CreateNull (length As Integer) As SqlVector(Of T)

Parameters

length
Int32

Returns

Exceptions

Vector length must be non-negative.

Applies to