SqlGuid 結構

定義

表示要存放在資料庫或從資料庫擷取的 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
屬性
實作

建構函式

SqlGuid(Byte[])

使用提供的位元組陣列參數,初始化 SqlGuid 結構的新執行個體。Initializes a new instance of the SqlGuid structure using the supplied byte array parameter.

SqlGuid(Guid)

使用指定的 SqlGuid 參數,初始化 Guid 結構的新執行個體。Initializes a new instance of the SqlGuid structure using the specified Guid parameter.

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.

SqlGuid(String)

使用指定的 SqlGuid 參數,初始化 String 結構的新執行個體。Initializes a new instance of the SqlGuid structure using the specified String parameter.

欄位

Null

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

屬性

IsNull

取得布林值,這個值表示這個 SqlGuid 結構是否為 null。Gets a Boolean value that indicates whether this SqlGuid structure is null.

Value

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

方法

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.

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.

Equals(Object)

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

Equals(SqlGuid, SqlGuid)

執行兩個 SqlGuid 結構的邏輯比對,以判斷它們是否相等。Performs a logical comparison of two SqlGuid structures to determine whether they are equal.

GetHashCode()

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

GetXsdType(XmlSchemaSet)

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

GreaterThan(SqlGuid, SqlGuid)

比較 SqlGuid 的兩個執行個體,判斷第一個執行個體是否大於第二個。Compares two instances of SqlGuid to determine whether the first is greater than the second.

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)

比較 SqlGuid 的兩個執行個體,判斷第一個執行個體是否小於第二個。Compares two instances of SqlGuid to determine whether the first is less than the second.

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)

執行兩個 SqlGuid 結構的邏輯比對,判斷它們是否相等。Performs a logical comparison on two SqlGuid structures to determine whether they are not equal.

Parse(String)

將指定的 String 結構轉換成 SqlGuidConverts the specified String structure to SqlGuid.

ToByteArray()

將這個 SqlGuid 結構轉換成位元組陣列。Converts this SqlGuid structure to a byte array.

ToSqlBinary()

將這個 SqlGuid 結構轉換為 SqlBinaryConverts this SqlGuid structure to SqlBinary.

ToSqlString()

將這個 SqlGuid 結構轉換為 SqlStringConverts this SqlGuid structure to SqlString.

ToString()

將這個 SqlGuid 結構轉換成 StringConverts this SqlGuid structure to a String.

運算子

Equality(SqlGuid, SqlGuid)

執行兩個 SqlGuid 結構的邏輯比對,以判斷它們是否相等。Performs a logical comparison of two SqlGuid structures to determine whether they are equal.

Explicit(SqlBinary to SqlGuid)

SqlBinary 參數轉換成 SqlGuidConverts the SqlBinary parameter to SqlGuid.

Explicit(SqlGuid to Guid)

將提供的 SqlGuid 參數轉換成 GuidConverts the supplied SqlGuid parameter to Guid.

Explicit(SqlString to SqlGuid)

將指定的 SqlString 結構轉換成 SqlGuidConverts the specified SqlString structure to SqlGuid.

GreaterThan(SqlGuid, SqlGuid)

比較 SqlGuid 的兩個執行個體,判斷第一個執行個體是否大於第二個。Compares two instances of SqlGuid to determine whether the first is greater than the second.

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)

將提供的 Guid 參數轉換成 SqlGuidConverts the supplied Guid parameter to SqlGuid.

Inequality(SqlGuid, SqlGuid)

執行兩個 SqlGuid 結構的邏輯比對,判斷它們是否相等。Performs a logical comparison on two SqlGuid structures to determine whether they are not equal.

LessThan(SqlGuid, SqlGuid)

比較 SqlGuid 的兩個執行個體,判斷第一個執行個體是否小於第二個。Compares two instances of SqlGuid to determine whether the first is less than the second.

LessThanOrEqual(SqlGuid, SqlGuid)

比較 SqlGuid 的兩個執行個體,判斷第一個執行個體是否小於或等於第二個。Compares two instances of SqlGuid to determine whether the first is less than or equal to the second.

明確介面實作

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)

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

IXmlSerializable.WriteXml(XmlWriter)

此成員支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

適用於

另請參閱