SqlBinary 結構

定義

表示要存放在資料庫或從資料庫中擷取之二進位資料的可變長度資料流。Represents a variable-length stream of binary data to be stored in or retrieved from a database.

public value class SqlBinary : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
[System.Serializable]
public struct SqlBinary : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlBinary = struct
    interface INullable
    interface IXmlSerializable
Public Structure SqlBinary
Implements IComparable, INullable, IXmlSerializable
繼承
SqlBinary
屬性
實作

建構函式

SqlBinary(Byte[])

Value 屬性設定為提供之位元組陣列的內容,來初始化 SqlBinary 結構的新執行個體。Initializes a new instance of the SqlBinary structure, setting the Value property to the contents of the supplied byte array.

欄位

Null

表示 DBNull,可以指派至 SqlBinary 結構的執行個體。Represents a DBNull that can be assigned to this instance of the SqlBinary structure.

屬性

IsNull

表示這個 SqlBinary 結構是否為 Null。Indicates whether this SqlBinary structure is null. 這個屬性是唯讀的。This property is read-only.

Item[Int32]

從位於整數參數 index 所指示之位置的 Value 屬性中取得單一位元組。Gets the single byte from the Value property located at the position indicated by the integer parameter, index. 如果 index 指示超過位元組陣列末端的位置,則會引發 SqlNullValueExceptionIf index indicates a position beyond the end of the byte array, a SqlNullValueException will be raised. 這個屬性是唯讀的。This property is read-only.

Length

取得 Value 屬性的長度,以位元組為單位。Gets the length in bytes of the Value property. 這個屬性是唯讀的。This property is read-only.

Value

取得 SqlBinary 結構的值。Gets the value of the SqlBinary structure. 這個屬性是唯讀的。This property is read-only.

方法

Add(SqlBinary, SqlBinary)

將兩個指定的 SqlBinary 參數串連,以建立新的 SqlBinary 結構。Concatenates two specified SqlBinary values to create a new SqlBinary structure.

CompareTo(Object)

將這個 SqlBinary 物件與提供的物件相比較,並傳回它們相對值的指示。Compares this SqlBinary object to the supplied object and returns an indication of their relative values.

CompareTo(SqlBinary)

將這個 SqlBinary 物件與提供的 SqlBinary 物件相比較,並傳回它們相對值的指示。Compares this SqlBinary object to the supplied SqlBinary object and returns an indication of their relative values.

Concat(SqlBinary, SqlBinary)

將兩個 SqlBinary 結構串連以建立新的 SqlBinary 結構。Concatenates two SqlBinary structures to create a new SqlBinary structure.

Equals(Object)

將提供的物件參數與 Value 物件的 SqlBinary 屬性相比較。Compares the supplied object parameter to the Value property of the SqlBinary object.

Equals(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷它們是否相等。Compares two SqlBinary structures to determine whether they are equal.

GetHashCode()

傳回這個 SqlBinary 結構的雜湊程式碼。Returns the hash code for this SqlBinary structure.

GetXsdType(XmlSchemaSet)

傳回指定之 XmlSchemaSet 的 XML 結構描述定義語言 (XSD)。Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.

GreaterThan(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷第一個結構是否大於第二個。Compares two SqlBinary structures to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷第一個結構是否大於或等於第二個。Compares two SqlBinary structures to determine whether the first is greater than or equal to the second.

LessThan(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷第一個結構是否小於第二個。Compares two SqlBinary structures to determine whether the first is less than the second.

LessThanOrEqual(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷第一個結構是否小於或等於第二個。Compares two SqlBinary structures to determine whether the first is less than or equal to the second.

NotEquals(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷它們是否不相等。Compares two SqlBinary structures to determine whether they are not equal.

ToSqlGuid()

將這個 SqlBinary 的執行個體轉換成 SqlGuidConverts this instance of SqlBinary to SqlGuid.

ToString()

將這個 SqlBinary 物件轉換成字串。Converts this SqlBinary object to a string.

運算子

Addition(SqlBinary, SqlBinary)

將兩個 SqlBinary 參數串連以建立新的 SqlBinary 結構。Concatenates the two SqlBinary parameters to create a new SqlBinary structure.

Equality(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷它們是否相等。Compares two SqlBinary structures to determine whether they are equal.

Explicit(SqlBinary to Byte[])

SqlBinary 結構轉換成 Byte 陣列。Converts a SqlBinary structure to a Byte array.

Explicit(SqlGuid to SqlBinary)

SqlGuid 結構轉換成 SqlBinary 結構。Converts a SqlGuid structure to a SqlBinary structure.

GreaterThan(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷第一個結構是否大於第二個。Compares two SqlBinary structures to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷第一個結構是否大於或等於第二個。Compares two SqlBinary structures to determine whether the first is greater than or equal to the second.

Implicit(Byte[] to SqlBinary)

將位元組的陣列轉換成 SqlBinary 結構。Converts an array of bytes to a SqlBinary structure.

Inequality(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷它們是否不相等。Compares two SqlBinary structures to determine whether they are not equal.

LessThan(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷第一個結構是否小於第二個。Compares two SqlBinary structures to determine whether the first is less than the second.

LessThanOrEqual(SqlBinary, SqlBinary)

比較兩個 SqlBinary 結構,判斷第一個結構是否小於或等於第二個。Compares two SqlBinary structures to determine whether the first is less than or equal to the second.

明確介面實作

IXmlSerializable.GetSchema()

如需這個成員的說明,請參閱 GetSchema()For a description of this member, see GetSchema().

IXmlSerializable.ReadXml(XmlReader)

如需這個成員的說明,請參閱 ReadXml(XmlReader)For a description of this member, see ReadXml(XmlReader).

IXmlSerializable.WriteXml(XmlWriter)

如需這個成員的說明,請參閱 WriteXml(XmlWriter)For a description of this member, see WriteXml(XmlWriter).

適用於

另請參閱