ElementSchemaAttribute Class

Marks a static field that defines the schema of child elements.

C#
[AttributeUsage(System.AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
public sealed class ElementSchemaAttribute : Attribute
Inheritance
ElementSchemaAttribute
Attributes

Remarks

This annotation must mark a static and readonly field whose type is Schema. And the class that has the static field must be annotated with ForElementAttribute.

If there is a static field annotated with ElementSchemaAttribute in a class, there must be no other static fields annotated with it, and be no instance fields annotated with ForTextAttribute in that class.

Methods

Equals(object) (Inherited from Attribute)
GetHashCode() (Inherited from Attribute)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

See Also