SqlCeFunctions.DataLength Method

 

Returns the number of bytes used to represent any expression.

Namespace:   System.Data.Entity.SqlServerCompact
Assembly:  EntityFramework.SqlServerCompact (in EntityFramework.SqlServerCompact.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDataLength(Byte[])

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Boolean>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<DateTime>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Decimal>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Double>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Guid>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(String)

Returns the number of bytes used to represent any expression.


SqlCeFunctions.DataLength Method (Byte[])

Returns the number of bytes used to represent any expression.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
[DbFunctionAttribute("SqlServerCe", "DATALENGTH")]
public static Nullable<int> DataLength(
	byte[] arg
)

Parameters

arg
Type: System.Byte[]

The value to be examined for length.

Return Value

Type: System.Nullable<Int32>

The number of bytes in the input value.


SqlCeFunctions.DataLength Method (Nullable<Boolean>)

Returns the number of bytes used to represent any expression.

[DbFunctionAttribute("SqlServerCe", "DATALENGTH")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
public static Nullable<int> DataLength(
	Nullable<bool> arg
)

Parameters

arg
Type: System.Nullable<Boolean>

The value to be examined for data length.

Return Value

Type: System.Nullable<Int32>

The number of bytes in the input value.


SqlCeFunctions.DataLength Method (Nullable<DateTime>)

Returns the number of bytes used to represent any expression.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
[DbFunctionAttribute("SqlServerCe", "DATALENGTH")]
public static Nullable<int> DataLength(
	Nullable<DateTime> arg
)

Parameters

arg
Type: System.Nullable<DateTime>

The value to be examined for data length.

Return Value

Type: System.Nullable<Int32>

The number of bytes in the input value.


SqlCeFunctions.DataLength Method (Nullable<Decimal>)

Returns the number of bytes used to represent any expression.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
[DbFunctionAttribute("SqlServerCe", "DATALENGTH")]
public static Nullable<int> DataLength(
	Nullable<decimal> arg
)

Parameters

arg
Type: System.Nullable<Decimal>

The value to be examined for data length.

Return Value

Type: System.Nullable<Int32>

The number of bytes in the input value.


SqlCeFunctions.DataLength Method (Nullable<Double>)

Returns the number of bytes used to represent any expression.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
[DbFunctionAttribute("SqlServerCe", "DATALENGTH")]
public static Nullable<int> DataLength(
	Nullable<double> arg
)

Parameters

arg
Type: System.Nullable<Double>

The value to be examined for data length.

Return Value

Type: System.Nullable<Int32>

The number of bytes in the input value.


SqlCeFunctions.DataLength Method (Nullable<Guid>)

Returns the number of bytes used to represent any expression.

[DbFunctionAttribute("SqlServerCe", "DATALENGTH")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
public static Nullable<int> DataLength(
	Nullable<Guid> arg
)

Parameters

arg
Type: System.Nullable<Guid>

The value to be examined for data length.

Return Value

Type: System.Nullable<Int32>

The number of bytes in the input value.


SqlCeFunctions.DataLength Method (String)

Returns the number of bytes used to represent any expression.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
[DbFunctionAttribute("SqlServerCe", "DATALENGTH")]
public static Nullable<int> DataLength(
	string arg
)

Parameters

arg
Type: System.String

The value to be examined for data length.

Return Value

Type: System.Nullable<Int32>

The number of bytes in the input value.