XmlSchemaIdentityConstraint 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
識別條件約束的類別:key、keyref 和 unique 項目。
public ref class XmlSchemaIdentityConstraint : System::Xml::Schema::XmlSchemaAnnotated
public class XmlSchemaIdentityConstraint : System.Xml.Schema.XmlSchemaAnnotated
type XmlSchemaIdentityConstraint = class
inherit XmlSchemaAnnotated
Public Class XmlSchemaIdentityConstraint
Inherits XmlSchemaAnnotated
- 繼承
- 衍生
範例
如需使用此類別的範例,請參閱 XmlSchemaUnique 。
備註
與唯一性和參考相關的數種身分識別條件約束名稱與其中之一之間的關聯。
建構函式
| 名稱 | Description |
|---|---|
| XmlSchemaIdentityConstraint() |
初始化 XmlSchemaIdentityConstraint 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| Annotation |
取得或設定 |
| Fields |
取得當成 XML 路徑語言 (XPath) 運算式選取器之子系套用的欄位集合。 |
| Id |
取得或設定字串 ID。 (繼承來源 XmlSchemaAnnotated) |
| LineNumber |
取得或設定 |
| LinePosition |
取得或設定 |
| Name |
取得或設定識別條件約束的名稱。 |
| Namespaces |
取得或設定 XmlSerializerNamespaces,以便與這個結構描述物件一起使用。 (繼承來源 XmlSchemaObject) |
| Parent |
取得或設定這個 XmlSchemaObject 的父項。 (繼承來源 XmlSchemaObject) |
| QualifiedName |
取得包含 |
| Selector |
取得或設定 XPath 運算式 |
| SourceUri |
取得或設定載入結構描述之檔案的來源位置。 (繼承來源 XmlSchemaObject) |
| UnhandledAttributes |
取得或設定不屬於目前結構描述之目標命名空間的限定屬性 (Attribute)。 (繼承來源 XmlSchemaAnnotated) |
方法
| 名稱 | Description |
|---|---|
| Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
| GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
| GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
| MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
| ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |