SqlBinary.Value Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: