SqlFunctions.DataLength Method

Definition

Overloads

DataLength(Byte[])

Returns the number of bytes used to represent any expression.

DataLength(Nullable<Boolean>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<DateTime>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<DateTimeOffset>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<Decimal>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<Double>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<Guid>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<TimeSpan>)

Returns the number of bytes used to represent any expression.

DataLength(String)

Returns the number of bytes used to represent any expression.

DataLength(Byte[])

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (byte[] arg);
static member DataLength : byte[] -> Nullable<int>
Public Shared Function DataLength (arg As Byte()) As Nullable(Of Integer)

Parameters

arg
Byte[]

The value to be examined for length.

Returns

The number of bytes in the input value.

Attributes

Applies to

DataLength(Nullable<Boolean>)

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (Nullable<bool> arg);
static member DataLength : Nullable<bool> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of Boolean)) As Nullable(Of Integer)

Parameters

arg
Nullable<Boolean>

The value to be examined for data length.

Returns

The number of bytes in the input value.

Attributes

Applies to

DataLength(Nullable<DateTime>)

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (Nullable<DateTime> arg);
static member DataLength : Nullable<DateTime> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of DateTime)) As Nullable(Of Integer)

Parameters

arg
Nullable<DateTime>

The value to be examined for data length.

Returns

The number of bytes in the input value.

Attributes

Applies to

DataLength(Nullable<DateTimeOffset>)

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (Nullable<DateTimeOffset> arg);
static member DataLength : Nullable<DateTimeOffset> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)

Parameters

arg
Nullable<DateTimeOffset>

The value to be examined for data length.

Returns

The number of bytes in the input value.

Attributes

Applies to

DataLength(Nullable<Decimal>)

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (Nullable<decimal> arg);
static member DataLength : Nullable<decimal> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of Decimal)) As Nullable(Of Integer)

Parameters

arg
Nullable<Decimal>

The value to be examined for data length.

Returns

The number of bytes in the input value.

Attributes

Applies to

DataLength(Nullable<Double>)

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (Nullable<double> arg);
static member DataLength : Nullable<double> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of Double)) As Nullable(Of Integer)

Parameters

arg
Nullable<Double>

The value to be examined for data length.

Returns

The number of bytes in the input value.

Attributes

Applies to

DataLength(Nullable<Guid>)

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (Nullable<Guid> arg);
static member DataLength : Nullable<Guid> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of Guid)) As Nullable(Of Integer)

Parameters

arg
Nullable<Guid>

The value to be examined for data length.

Returns

The number of bytes in the input value.

Attributes

Applies to

DataLength(Nullable<TimeSpan>)

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (Nullable<TimeSpan> arg);
static member DataLength : Nullable<TimeSpan> -> Nullable<int>
Public Shared Function DataLength (arg As Nullable(Of TimeSpan)) As Nullable(Of Integer)

Parameters

arg
Nullable<TimeSpan>

The value to be examined for data length.

Returns

The number of bytes in the input value.

Attributes

Applies to

DataLength(String)

Returns the number of bytes used to represent any expression.

[System.Data.Entity.DbFunction("SqlServer", "DATALENGTH")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="arg")]
public static Nullable<int> DataLength (string arg);
static member DataLength : string -> Nullable<int>
Public Shared Function DataLength (arg As String) As Nullable(Of Integer)

Parameters

arg
String

The value to be examined for data length.

Returns

The number of bytes in the input value.

Attributes

Applies to