SqlGuid SqlGuid SqlGuid SqlGuid Struct

定义

表示要存储在数据库中或要从数据库中检索的 GUID。Represents a GUID to be stored in or retrieved from a database.

public value class SqlGuid : IComparable, System::Data::SqlTypes::INullable, System::Xml::Serialization::IXmlSerializable
[System.Serializable]
public struct SqlGuid : IComparable, System.Data.SqlTypes.INullable, System.Xml.Serialization.IXmlSerializable
type SqlGuid = struct
    interface INullable
    interface IXmlSerializable
Public Structure SqlGuid
Implements IComparable, INullable, IXmlSerializable
继承
属性
实现

构造函数

SqlGuid(Byte[]) SqlGuid(Byte[]) SqlGuid(Byte[]) SqlGuid(Byte[])

使用提供的字节数组参数初始化 SqlGuid 结构的新实例。Initializes a new instance of the SqlGuid structure using the supplied byte array parameter.

SqlGuid(Guid) SqlGuid(Guid) SqlGuid(Guid) SqlGuid(Guid)

使用指定的 SqlGuid 参数初始化 Guid 结构的新实例。Initializes a new instance of the SqlGuid structure using the specified Guid parameter.

SqlGuid(String) SqlGuid(String) SqlGuid(String) SqlGuid(String)

使用指定的 SqlGuid 参数初始化 String 结构的新实例。Initializes a new instance of the SqlGuid structure using the specified String parameter.

SqlGuid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte) SqlGuid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte) SqlGuid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte) SqlGuid(Int32, Int16, Int16, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)

使用指定的值初始化 SqlGuid 结构的新实例。Initializes a new instance of the SqlGuid structure using the specified values.

字段

Null Null Null Null

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

属性

IsNull IsNull IsNull IsNull

获取一个布尔值,该值指示此 SqlGuid 结构是否为 null。Gets a Boolean value that indicates whether this SqlGuid structure is null.

Value Value Value Value

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

方法

CompareTo(SqlGuid) CompareTo(SqlGuid) CompareTo(SqlGuid) CompareTo(SqlGuid)

将此 SqlGuid 结构与提供的 SqlGuid 进行比较,并返回其相对值的指示值。Compares this SqlGuid structure to the supplied SqlGuid and returns an indication of their relative values. 不仅仅是比较最后 6 个字节,但会将最后 6 个字节视为比较中最重要的字节。Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

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

将此 SqlGuid 结构与所提供的对象进行比较,并返回其相对值的指示。Compares this SqlGuid structure to the supplied object and returns an indication of their relative values. 不仅仅是比较最后 6 个字节,但会将最后 6 个字节视为比较中最重要的字节。Compares more than the last 6 bytes, but treats the last 6 bytes as the most significant ones in comparisons.

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

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

Equals(SqlGuid, SqlGuid) Equals(SqlGuid, SqlGuid) Equals(SqlGuid, SqlGuid) Equals(SqlGuid, SqlGuid)

对两个 SqlGuid 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlGuid structures to determine whether they are equal.

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

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

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

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

GreaterThan(SqlGuid, SqlGuid) GreaterThan(SqlGuid, SqlGuid) GreaterThan(SqlGuid, SqlGuid) GreaterThan(SqlGuid, SqlGuid)

SqlGuid 的两个实例进行比较,以确定第一个实例是否大于第二个实例。Compares two instances of SqlGuid to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlGuid, SqlGuid) GreaterThanOrEqual(SqlGuid, SqlGuid) GreaterThanOrEqual(SqlGuid, SqlGuid) GreaterThanOrEqual(SqlGuid, SqlGuid)

SqlGuid 的两个实例进行比较,以确定第一个实例是否大于或等于第二个实例。Compares two instances of SqlGuid to determine whether the first is greater than or equal to the second.

LessThan(SqlGuid, SqlGuid) LessThan(SqlGuid, SqlGuid) LessThan(SqlGuid, SqlGuid) LessThan(SqlGuid, SqlGuid)

SqlGuid 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of SqlGuid to determine whether the first is less than the second.

LessThanOrEqual(SqlGuid, SqlGuid) LessThanOrEqual(SqlGuid, SqlGuid) LessThanOrEqual(SqlGuid, SqlGuid) LessThanOrEqual(SqlGuid, SqlGuid)

SqlGuid 的两个实例进行比较,以确定第一个实例是否小于或等于第二个实例。Compares two instances of SqlGuid to determine whether the first is less than or equal to the second.

NotEquals(SqlGuid, SqlGuid) NotEquals(SqlGuid, SqlGuid) NotEquals(SqlGuid, SqlGuid) NotEquals(SqlGuid, SqlGuid)

对两个 SqlGuid 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison on two SqlGuid structures to determine whether they are not equal.

Parse(String) Parse(String) Parse(String) Parse(String)

将指定的 String 结构转换为 SqlGuidConverts the specified String structure to SqlGuid.

ToByteArray() ToByteArray() ToByteArray() ToByteArray()

将此 SqlGuid 结构转换为字节数组。Converts this SqlGuid structure to a byte array.

ToSqlBinary() ToSqlBinary() ToSqlBinary() ToSqlBinary()

将此 SqlGuid 结构转换为 SqlBinaryConverts this SqlGuid structure to SqlBinary.

ToSqlString() ToSqlString() ToSqlString() ToSqlString()

将此 SqlGuid 结构转换为 SqlStringConverts this SqlGuid structure to SqlString.

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

将此 SqlGuid 结构转换为 StringConverts this SqlGuid structure to a String.

操作员

Equality(SqlGuid, SqlGuid) Equality(SqlGuid, SqlGuid) Equality(SqlGuid, SqlGuid) Equality(SqlGuid, SqlGuid)

对两个 SqlGuid 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison of two SqlGuid structures to determine whether they are equal.

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

SqlBinary 参数转换为 SqlGuidConverts the SqlBinary parameter to SqlGuid.

Explicit(SqlGuid to Guid) Explicit(SqlGuid to Guid) Explicit(SqlGuid to Guid) Explicit(SqlGuid to Guid)

将提供的 SqlGuid 参数转换为 GuidConverts the supplied SqlGuid parameter to Guid.

Explicit(SqlString to SqlGuid) Explicit(SqlString to SqlGuid) Explicit(SqlString to SqlGuid) Explicit(SqlString to SqlGuid)

将指定的 SqlString 结构转换为 SqlGuidConverts the specified SqlString structure to SqlGuid.

GreaterThan(SqlGuid, SqlGuid) GreaterThan(SqlGuid, SqlGuid) GreaterThan(SqlGuid, SqlGuid) GreaterThan(SqlGuid, SqlGuid)

SqlGuid 的两个实例进行比较,以确定第一个实例是否大于第二个实例。Compares two instances of SqlGuid to determine whether the first is greater than the second.

GreaterThanOrEqual(SqlGuid, SqlGuid) GreaterThanOrEqual(SqlGuid, SqlGuid) GreaterThanOrEqual(SqlGuid, SqlGuid) GreaterThanOrEqual(SqlGuid, SqlGuid)

SqlGuid 的两个实例进行比较,以确定第一个实例是否大于或等于第二个实例。Compares two instances of SqlGuid to determine whether the first is greater than or equal to the second.

Implicit(Guid to SqlGuid) Implicit(Guid to SqlGuid) Implicit(Guid to SqlGuid) Implicit(Guid to SqlGuid)

将提供的 Guid 参数转换为 SqlGuidConverts the supplied Guid parameter to SqlGuid.

Inequality(SqlGuid, SqlGuid) Inequality(SqlGuid, SqlGuid) Inequality(SqlGuid, SqlGuid) Inequality(SqlGuid, SqlGuid)

对两个 SqlGuid 结构执行逻辑比较,以确定它们是否相等。Performs a logical comparison on two SqlGuid structures to determine whether they are not equal.

LessThan(SqlGuid, SqlGuid) LessThan(SqlGuid, SqlGuid) LessThan(SqlGuid, SqlGuid) LessThan(SqlGuid, SqlGuid)

SqlGuid 的两个实例进行比较,以确定第一个实例是否小于第二个实例。Compares two instances of SqlGuid to determine whether the first is less than the second.

LessThanOrEqual(SqlGuid, SqlGuid) LessThanOrEqual(SqlGuid, SqlGuid) LessThanOrEqual(SqlGuid, SqlGuid) LessThanOrEqual(SqlGuid, SqlGuid)

SqlGuid 的两个实例进行比较,以确定第一个实例是否小于或等于第二个实例。Compares two instances of SqlGuid to determine whether the first is less than or equal to the second.

显式界面实现

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

此成员支持 .NET Framework 结构,不能在代码中直接使用。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

此成员支持 .NET Framework 结构,不能在代码中直接使用。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

此成员支持 .NET Framework 结构,不能在代码中直接使用。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

适用于

另请参阅