.NET Framework Class Library  

SqlBinary Members

SqlBinary overview

Public Constructors

public constructorSqlBinary Constructor

Supported by the .NET Compact Framework.

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

Public Fields

public fieldstatic (Shared in Visual Basic)Null

Supported by the .NET Compact Framework.

Represents a null value that can be assigned to the Value property of a SqlBinary structure.

Public Properties

public propertyIsNull

Supported by the .NET Compact Framework.

Gets a value indicating whether whether the Value property of the SqlBinary structure is null. This property is read-only.
public propertyItem Gets the single byte from the Value property located at the position indicated by the integer parameter, index. If index indicates a position beyond the end of the byte array, a SqlNullValueException will be raised. This property is read-only.

In C#, this property is the indexer for the SqlBinary class.

public propertyLength

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Public Methods

public methodCompareTo

Supported by the .NET Compact Framework.

Compares this SqlBinary object to the supplied object and returns an indication of their relative values.
public methodstatic (Shared in Visual Basic)Concat

Supported by the .NET Compact Framework.

Concatenates two SqlBinary structures to create a new SqlBinary structure.
public methodEquals

Supported by the .NET Compact Framework.

Overloaded. Overridden. Compares two SqlBinary structures to determine if they are equal.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Returns the hash code for this SqlBinary structure.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodstatic (Shared in Visual Basic)GreaterThan

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if the first is greater than the second.
public methodstatic (Shared in Visual Basic)GreaterThanOrEqual

Supported by the .NET Compact Framework.

Compares two SqlBinary structues to determine if the first is greater than or equal to the second.
public methodstatic (Shared in Visual Basic)LessThan

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if the first is less than the second.
public methodstatic (Shared in Visual Basic)LessThanOrEqual

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if the first is less than or equal to the second.
public methodstatic (Shared in Visual Basic)NotEquals

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if they are not equal.
public methodToSqlGuid

Supported by the .NET Compact Framework.

Converts this instance of SqlBinary to SqlGuid.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Converts this SqlBinary object to a string.

Public Operators and Type Conversions

public operatorstatic (Shared in Visual Basic)Addition Operator

Supported by the .NET Compact Framework.

Concatenates the two SqlBinary parameters to create a new SqlBinary structure.
public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if they are equal.
public operatorstatic (Shared in Visual Basic)Greater Than Operator

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if the first is greater than the second.
public operatorstatic (Shared in Visual Basic)Greater Than Or Equal Operator

Supported by the .NET Compact Framework.

Compares two SqlBinary structues to determine if the first is greater than or equal to the second.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if they are not equal.
public operatorstatic (Shared in Visual Basic)Less Than Operator

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if the first is less than the second.
public operatorstatic (Shared in Visual Basic)Less Than Or Equal Operator

Supported by the .NET Compact Framework.

Compares two SqlBinary structures to determine if the first is less than or equal to the second.
public operatorstatic (Shared in Visual Basic)SqlBinary to Byte[] Conversion

Supported by the .NET Compact Framework.

Gets the contents of the Value property of the SqlBinary parameter as an array of bytes.
public operatorstatic (Shared in Visual Basic)SqlGuid to SqlBinary Conversion

Supported by the .NET Compact Framework.

Converts a SqlGuid structure to a SqlBinary structure.
public operatorstatic (Shared in Visual Basic)Byte[] to SqlBinary Conversion

Supported by the .NET Compact Framework.

Converts an array of bytes to a SqlBinary structure.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

SqlBinary Structure | System.Data.SqlTypes Namespace