SqlBinary SqlBinary SqlBinary SqlBinary Struct

定义

表示要存储在数据库中或从数据库中检索的二进制数据的可变长度流。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(Byte[]) SqlBinary(Byte[]) SqlBinary(Byte[]) SqlBinary(Byte[])

初始化 SqlBinary 结构的新实例,将 Value 属性设置为已提供的字节数组的内容。Initializes a new instance of the SqlBinary structure, setting the Value property to the contents of the supplied byte array.

字段

Null Null Null Null

表示可指派给 DBNull 结构的此实例的 SqlBinaryRepresents a DBNull that can be assigned to this instance of the SqlBinary structure.

属性

IsNull IsNull IsNull IsNull

指示此 SqlBinary 结构是否为 null。Indicates whether this SqlBinary structure is null. 此属性是只读的。This property is read-only.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Value 属性获取单字节,该属性位于整数参数 index 指示的位置。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 Length Length Length

获取 Value 属性的长度(以字节为单位)。Gets the length in bytes of the Value property. 此属性是只读的。This property is read-only.

Value Value Value Value

获取 SqlBinary 结构的值。Gets the value of the SqlBinary structure. 此属性是只读的。This property is read-only.

方法

Add(SqlBinary, SqlBinary) Add(SqlBinary, SqlBinary) Add(SqlBinary, SqlBinary) Add(SqlBinary, SqlBinary)

串联两个指定的 SqlBinary 值以创建一个新的 SqlBinary 结构。Concatenates two specified SqlBinary values to create a new SqlBinary structure.

CompareTo(SqlBinary) CompareTo(SqlBinary) CompareTo(SqlBinary) CompareTo(SqlBinary)

将此 SqlBinary 对象与所提供的 SqlBinary 对象进行比较,并返回其相对值的指示值。Compares this SqlBinary object to the supplied SqlBinary object and returns an indication of their relative values.

CompareTo(Object) CompareTo(Object) CompareTo(Object) CompareTo(Object)

将此 SqlBinary 对象与所提供的对象进行比较,并返回其相对值的指示值。Compares this SqlBinary object to the supplied object and returns an indication of their relative values.

Concat(SqlBinary, SqlBinary) Concat(SqlBinary, SqlBinary) Concat(SqlBinary, SqlBinary) Concat(SqlBinary, SqlBinary)

串联两个 SqlBinary 结构以创建一个新 SqlBinary 结构。Concatenates two SqlBinary structures to create a new SqlBinary structure.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

将提供的对象参数与 Value 对象的 SqlBinary 属性进行比较。Compares the supplied object parameter to the Value property of the SqlBinary object.

Equals(SqlBinary, SqlBinary) Equals(SqlBinary, SqlBinary) Equals(SqlBinary, SqlBinary) Equals(SqlBinary, SqlBinary)

比较两个 SqlBinary 结构以确定它们是否相等。Compares two SqlBinary structures to determine whether they are equal.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

返回此 SqlBinary 结构的哈希代码。Returns the hash code for this SqlBinary structure.

GetXsdType(XmlSchemaSet) GetXsdType(XmlSchemaSet) GetXsdType(XmlSchemaSet) GetXsdType(XmlSchemaSet)

返回指定的 XmlSchemaSet 的 XML 架构定义语言 (XSD)。Returns the XML Schema definition language (XSD) of the specified XmlSchemaSet.

GreaterThan(SqlBinary, SqlBinary) GreaterThan(SqlBinary, SqlBinary) GreaterThan(SqlBinary, SqlBinary) GreaterThan(SqlBinary, SqlBinary)

对两个 SqlBinary 结构进行比较,以确定第一个结构是否大于第二个结构。Compares two SqlBinary structures to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlBinary, SqlBinary) GreaterThanOrEqual(SqlBinary, SqlBinary) GreaterThanOrEqual(SqlBinary, SqlBinary) GreaterThanOrEqual(SqlBinary, SqlBinary)

对两个 SqlBinary 结构进行比较,以确定第一个结构是否大于或等于第二个结构。Compares two SqlBinary structures to determine whether the first is greater than or equal to the second.

LessThan(SqlBinary, SqlBinary) LessThan(SqlBinary, SqlBinary) LessThan(SqlBinary, SqlBinary) LessThan(SqlBinary, SqlBinary)

对两个 SqlBinary 结构进行比较,以确定第一个结构是否小于第二个结构。Compares two SqlBinary structures to determine whether the first is less than the second.

LessThanOrEqual(SqlBinary, SqlBinary) LessThanOrEqual(SqlBinary, SqlBinary) LessThanOrEqual(SqlBinary, SqlBinary) LessThanOrEqual(SqlBinary, SqlBinary)

对两个 SqlBinary 结构进行比较,以确定第一个结构是否小于或等于第二个结构。Compares two SqlBinary structures to determine whether the first is less than or equal to the second.

NotEquals(SqlBinary, SqlBinary) NotEquals(SqlBinary, SqlBinary) NotEquals(SqlBinary, SqlBinary) NotEquals(SqlBinary, SqlBinary)

比较两个 SqlBinary 结构以确定它们是否不相等。Compares two SqlBinary structures to determine whether they are not equal.

ToSqlGuid() ToSqlGuid() ToSqlGuid() ToSqlGuid()

SqlBinary 的此实例转换为 SqlGuidConverts this instance of SqlBinary to SqlGuid.

ToString() ToString() ToString() ToString()

将此 SqlBinary 对象转换为字符串。Converts this SqlBinary object to a string.

操作员

Addition(SqlBinary, SqlBinary) Addition(SqlBinary, SqlBinary) Addition(SqlBinary, SqlBinary) Addition(SqlBinary, SqlBinary)

串连两个 SqlBinary 参数以创建一个新 SqlBinary 结构。Concatenates the two SqlBinary parameters to create a new SqlBinary structure.

Equality(SqlBinary, SqlBinary) Equality(SqlBinary, SqlBinary) Equality(SqlBinary, SqlBinary) Equality(SqlBinary, SqlBinary)

比较两个 SqlBinary 结构以确定它们是否相等。Compares two SqlBinary structures to determine whether they are equal.

Explicit(SqlBinary to Byte[]) Explicit(SqlBinary to Byte[]) Explicit(SqlBinary to Byte[]) Explicit(SqlBinary to Byte[])

SqlBinary 结构转换为 Byte 数组。Converts a SqlBinary structure to a Byte array.

Explicit(SqlGuid to SqlBinary) Explicit(SqlGuid to SqlBinary) Explicit(SqlGuid to SqlBinary) Explicit(SqlGuid to SqlBinary)

SqlGuid 结构转换为 SqlBinary 结构。Converts a SqlGuid structure to a SqlBinary structure.

GreaterThan(SqlBinary, SqlBinary) GreaterThan(SqlBinary, SqlBinary) GreaterThan(SqlBinary, SqlBinary) GreaterThan(SqlBinary, SqlBinary)

对两个 SqlBinary 结构进行比较,以确定第一个结构是否大于第二个结构。Compares two SqlBinary structures to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlBinary, SqlBinary) GreaterThanOrEqual(SqlBinary, SqlBinary) GreaterThanOrEqual(SqlBinary, SqlBinary) 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) Implicit(Byte[] to SqlBinary) Implicit(Byte[] to SqlBinary) Implicit(Byte[] to SqlBinary)

将字节数组转换为 SqlBinary 结构。Converts an array of bytes to a SqlBinary structure.

Inequality(SqlBinary, SqlBinary) Inequality(SqlBinary, SqlBinary) Inequality(SqlBinary, SqlBinary) Inequality(SqlBinary, SqlBinary)

比较两个 SqlBinary 结构以确定它们是否不相等。Compares two SqlBinary structures to determine whether they are not equal.

LessThan(SqlBinary, SqlBinary) LessThan(SqlBinary, SqlBinary) LessThan(SqlBinary, SqlBinary) LessThan(SqlBinary, SqlBinary)

对两个 SqlBinary 结构进行比较,以确定第一个结构是否小于第二个结构。Compares two SqlBinary structures to determine whether the first is less than the second.

LessThanOrEqual(SqlBinary, SqlBinary) LessThanOrEqual(SqlBinary, SqlBinary) LessThanOrEqual(SqlBinary, SqlBinary) LessThanOrEqual(SqlBinary, SqlBinary)

对两个 SqlBinary 结构进行比较,以确定第一个结构是否小于或等于第二个结构。Compares two SqlBinary structures to determine whether the first is less than or equal to the second.

显式界面实现

IXmlSerializable.GetSchema() IXmlSerializable.GetSchema() IXmlSerializable.GetSchema() IXmlSerializable.GetSchema()

有关此成员的说明,请参见 GetSchema()For a description of this member, see GetSchema().

IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader) IXmlSerializable.ReadXml(XmlReader)

有关此成员的说明,请参见 ReadXml(XmlReader)For a description of this member, see ReadXml(XmlReader).

IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter) IXmlSerializable.WriteXml(XmlWriter)

有关此成员的说明,请参见 WriteXml(XmlWriter)For a description of this member, see WriteXml(XmlWriter).

适用于

另请参阅