<PackageReference Include="System.Data.SqlClient" Version="4.7.0-preview3.19128.7" />

SqlBinary

public struct SqlBinary : INullable, IComparable
Represents a variable-length stream of binary data to be stored in or retrieved from a database.
public static readonly SqlBinary Null

Represents a DBNull that can be assigned to this instance of the SqlBinary structure.

public bool IsNull { get; }

Indicates whether this SqlBinary structure is null. This property is read-only.

public byte this[int index] { get; }

Gets the single byte from the Value property located at the position indicated by the integer parameter, indexindex. If indexindex indicates a position beyond the end of the byte array, a SqlNullValueException will be raised. This property is read-only.

public int Length { get; }

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

public byte[] Value { get; }

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

public SqlBinary(byte[] value)

Initializes a new instance of the SqlBinary structure, setting the Value property to the contents of the supplied byte array.

public static SqlBinary Add(SqlBinary x, SqlBinary y)

Concatenates two specified SqlBinary values to create a new SqlBinary structure.

public static SqlBinary Concat(SqlBinary x, SqlBinary y)

Concatenates two SqlBinary structures to create a new SqlBinary structure.

public static SqlBoolean Equals(SqlBinary x, SqlBinary y)

Compares two SqlBinary structures to determine whether they are equal.

Compares two SqlBinary structures to determine whether the first is greater than the second.

Compares two SqlBinary structures to determine whether the first is greater than or equal to the second.

public static SqlBoolean LessThan(SqlBinary x, SqlBinary y)

Compares two SqlBinary structures to determine whether the first is less than the second.

Compares two SqlBinary structures to determine whether the first is less than or equal to the second.

Compares two SqlBinary structures to determine whether they are not equal.

Concatenates the two SqlBinary parameters to create a new SqlBinary structure.

Compares two SqlBinary structures to determine whether they are equal.

public static byte[] op_Explicit(SqlBinary x)

Converts a SqlBinary structure to a Byte array.

public static SqlBinary op_Explicit(SqlGuid x)

Converts a SqlGuid structure to a SqlBinary structure.

Compares two SqlBinary structures to determine whether the first is greater than the second.

Compares two SqlBinary structues to determine whether the first is greater than or equal to the second.

public static SqlBinary op_Implicit(byte[] x)

Converts an array of bytes to a SqlBinary structure.

Compares two SqlBinary structures to determine whether they are not equal.

Compares two SqlBinary structures to determine whether the first is less than the second.

Compares two SqlBinary structures to determine whether the first is less than or equal to the second.

public int CompareTo(SqlBinary value)

Compares this SqlBinary object to the supplied SqlBinary object and returns an indication of their relative values.

public int CompareTo(object value)

Compares this SqlBinary object to the supplied object and returns an indication of their relative values.

public SqlGuid ToSqlGuid()

Converts this instance of SqlBinary to SqlGuid.