SqlBinary.Value Property

 

Gets the value of the SqlBinary structure. This property is read-only.

Namespace:   System.Data.SqlTypes
Assembly:  System.Data (in System.Data.dll)

public byte[] Value { get; }

Property Value

Type: System.Byte[]

The value of the SqlBinary structure.

Exception Condition
SqlNullValueException

The Value property is read when the property contains Null.

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

.NET Framework
Available since 1.1
Return to top
Show: