mscorlib(4.0.0.0) API with additions
XmlSchemaIdentityConstraint.cs
2 
3 namespace System.Xml.Schema
4 {
7  {
8  private string name;
9 
10  private XmlSchemaXPath selector;
11 
13 
14  private XmlQualifiedName qualifiedName = XmlQualifiedName.Empty;
15 
16  private CompiledIdentityConstraint compiledConstraint;
17 
20  [XmlAttribute("name")]
21  public string Name
22  {
23  get
24  {
25  return name;
26  }
27  set
28  {
29  name = value;
30  }
31  }
32 
35  [XmlElement("selector", typeof(XmlSchemaXPath))]
37  {
38  get
39  {
40  return selector;
41  }
42  set
43  {
44  selector = value;
45  }
46  }
47 
50  [XmlElement("field", typeof(XmlSchemaXPath))]
52  {
53  get
54  {
55  return fields;
56  }
57  }
58 
61  [XmlIgnore]
63  {
64  get
65  {
66  return qualifiedName;
67  }
68  }
69 
70  [XmlIgnore]
71  internal CompiledIdentityConstraint CompiledConstraint
72  {
73  get
74  {
75  return compiledConstraint;
76  }
77  set
78  {
79  compiledConstraint = value;
80  }
81  }
82 
83  [XmlIgnore]
84  internal override string NameAttribute
85  {
86  get
87  {
88  return Name;
89  }
90  set
91  {
92  Name = value;
93  }
94  }
95 
96  internal void SetQualifiedName(XmlQualifiedName value)
97  {
98  qualifiedName = value;
99  }
100  }
101 }
string Name
Gets or sets the name of the identity constraint.
A collection of T:System.Xml.Schema.XmlSchemaObjects.
XmlQualifiedName QualifiedName
Gets the qualified name of the identity constraint, which holds the post-compilation value of the Qua...
Definition: __Canon.cs:3
Represents an attribute. Valid and default values for the attribute are defined in a document type de...
Definition: XmlAttribute.cs:7
XmlSchemaXPath Selector
Gets or sets the XPath expression selector element.
The base class for any element that can contain annotation elements.
XmlSchemaObjectCollection Fields
Gets the collection of fields that apply as children for the XML Path Language (XPath) expression sel...
Represents the World Wide Web Consortium (W3C) selector element.
Represents an element.
Definition: XmlElement.cs:7
Represents an XML qualified name.
static readonly XmlQualifiedName Empty
Provides an empty T:System.Xml.XmlQualifiedName.
Class for the identity constraints: key, keyref, and unique elements.