System.Xml.Schema.XmlSchemaKey Class

This class represents the key element from XMLSchema as specified by the World Wide Web Consortium (W3C).

See Also: XmlSchemaKey Members

Syntax

public class XmlSchemaKey : XmlSchemaIdentityConstraint

Remarks

Specifies that an attribute or element value (or set of values) must be a key within the specified scope. A key must be unique, non-nillable/non-nullable, and always present. The constraint name must be unique within a schema.

Requirements

Namespace: System.Xml.Schema
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0