SqlBytes.Length 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 length of the value that is contained in the SqlBytes instance.

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

public long Length { get; }

Property Value

Type: System.Int64

A Int64 value representing the length of the value that is contained in the SqlBytes instance.

Returns -1 if no buffer is available to the instance or if the value is null.

Returns a Length for a stream-wrapped instance.

The default value is 0.

.NET Framework
Available since 2.0
Return to top
Show: