Szerkesztés

Megosztás a következőn keresztül:


SqlBinary.Length Property

Definition

Gets the length in bytes of the Value property. This property is read-only.

public:
 property int Length { int get(); };
public int Length { get; }
member this.Length : int
Public ReadOnly Property Length As Integer

Property Value

The length of the binary data in the Value property.

Exceptions

The Length property is read when the Value property contains Null.

Remarks

To avoid raising a SqlNullValueException, always examine the IsNull property before reading the Length property.

Applies to

See also