SqlFunctions.DataLength SqlFunctions.DataLength SqlFunctions.DataLength SqlFunctions.DataLength Method

Definition

Returns the number of bytes used to represent any expression.

Overloads

DataLength(Byte[]) DataLength(Byte[]) DataLength(Byte[]) DataLength(Byte[])

Returns the number of bytes used to represent any expression.

DataLength(Nullable<Boolean>) DataLength(Nullable<Boolean>) DataLength(Nullable<Boolean>) DataLength(Nullable<Boolean>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<DateTime>) DataLength(Nullable<DateTime>) DataLength(Nullable<DateTime>) DataLength(Nullable<DateTime>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<DateTimeOffset>) DataLength(Nullable<DateTimeOffset>) DataLength(Nullable<DateTimeOffset>) DataLength(Nullable<DateTimeOffset>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<Decimal>) DataLength(Nullable<Decimal>) DataLength(Nullable<Decimal>) DataLength(Nullable<Decimal>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<Double>) DataLength(Nullable<Double>) DataLength(Nullable<Double>) DataLength(Nullable<Double>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<Guid>) DataLength(Nullable<Guid>) DataLength(Nullable<Guid>) DataLength(Nullable<Guid>)

Returns the number of bytes used to represent any expression.

DataLength(Nullable<TimeSpan>) DataLength(Nullable<TimeSpan>) DataLength(Nullable<TimeSpan>) DataLength(Nullable<TimeSpan>)

Returns the number of bytes used to represent any expression.

DataLength(String) DataLength(String) DataLength(String) DataLength(String)

Returns the number of bytes used to represent any expression.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(Byte[]) DataLength(Byte[]) DataLength(Byte[]) DataLength(Byte[])

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(cli::array <System::Byte> ^ arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(Nullable<Boolean>) DataLength(Nullable<Boolean>) DataLength(Nullable<Boolean>) DataLength(Nullable<Boolean>)

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(Nullable<bool> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(Nullable<DateTime>) DataLength(Nullable<DateTime>) DataLength(Nullable<DateTime>) DataLength(Nullable<DateTime>)

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(Nullable<DateTime> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(Nullable<DateTimeOffset>) DataLength(Nullable<DateTimeOffset>) DataLength(Nullable<DateTimeOffset>) DataLength(Nullable<DateTimeOffset>)

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(Nullable<DateTimeOffset> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(Nullable<Decimal>) DataLength(Nullable<Decimal>) DataLength(Nullable<Decimal>) DataLength(Nullable<Decimal>)

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(Nullable<System::Decimal> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(Nullable<Double>) DataLength(Nullable<Double>) DataLength(Nullable<Double>) DataLength(Nullable<Double>)

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(Nullable<double> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(Nullable<Guid>) DataLength(Nullable<Guid>) DataLength(Nullable<Guid>) DataLength(Nullable<Guid>)

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(Nullable<Guid> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(Nullable<TimeSpan>) DataLength(Nullable<TimeSpan>) DataLength(Nullable<TimeSpan>) DataLength(Nullable<TimeSpan>)

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(Nullable<TimeSpan> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

DataLength(String) DataLength(String) DataLength(String) DataLength(String)

Returns the number of bytes used to represent any expression.

public:
 static Nullable<int> DataLength(System::String ^ arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "DATALENGTH")]
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 String String String

The value to be examined for data length.

Returns

The number of bytes in the input value.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

Applies to