XmlSchemaKey 類別

定義

此類別會將來自 XML 結構描述的 key 元素,依全球資訊網協會 (W3C) 的規定表示。

public ref class XmlSchemaKey : System::Xml::Schema::XmlSchemaIdentityConstraint
public class XmlSchemaKey : System.Xml.Schema.XmlSchemaIdentityConstraint
type XmlSchemaKey = class
    inherit XmlSchemaIdentityConstraint
Public Class XmlSchemaKey
Inherits XmlSchemaIdentityConstraint
繼承

範例

如需使用此類別的範例,請參閱 XmlSchemaKeyref

備註

指定屬性或項目值 (或值集合) 必須是指定範圍內的索引鍵。 索引鍵必須是唯一、不可為 Null 或不可為 Null,而且一律存在。 條件約束名稱在架構內必須是唯一的。

建構函式

XmlSchemaKey()

初始化 XmlSchemaKey 類別的新執行個體。

屬性

Annotation

取得或設定 annotation 屬性。

(繼承來源 XmlSchemaAnnotated)
Fields

取得當成 XML 路徑語言 (XPath) 運算式選取器之子系套用的欄位集合。

(繼承來源 XmlSchemaIdentityConstraint)
Id

取得或設定字串 ID。

(繼承來源 XmlSchemaAnnotated)
LineNumber

取得或設定 schema 項目參考之檔案中的行號。

(繼承來源 XmlSchemaObject)
LinePosition

取得或設定 schema 項目參考之檔案中的行位置。

(繼承來源 XmlSchemaObject)
Name

取得或設定識別條件約束的名稱。

(繼承來源 XmlSchemaIdentityConstraint)
Namespaces

取得或設定 XmlSerializerNamespaces,以便與這個結構描述物件一起使用。

(繼承來源 XmlSchemaObject)
Parent

取得或設定這個 XmlSchemaObject 的父項。

(繼承來源 XmlSchemaObject)
QualifiedName

取得包含 QualifiedName 屬性編譯後值之識別條件約束的限定名稱 (Qualified Name)。

(繼承來源 XmlSchemaIdentityConstraint)
Selector

取得或設定 XPath 運算式 selector 項目。

(繼承來源 XmlSchemaIdentityConstraint)
SourceUri

取得或設定載入結構描述之檔案的來源位置。

(繼承來源 XmlSchemaObject)
UnhandledAttributes

取得或設定不屬於目前結構描述之目標命名空間的限定屬性 (Attribute)。

(繼承來源 XmlSchemaAnnotated)

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於