XmlSchemaAttribute.Use Property

 

Gets or sets information about how the attribute is used.

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public XmlSchemaUse Use { get; set; }

Property Value

Type: System.Xml.Schema.XmlSchemaUse

One of the following values: None, Prohibited, Optional, or Required. The default is Optional.

Optional.

If specified, this attribute must have one of the values shown in the following table.

Enum

Description

None

Attribute has no value.

Prohibited

Attribute cannot be used.

Optional

Attribute is optional and may have any value. This is the default.

Required

Attribute must appear once.

.NET Framework
Available since 1.1
Return to top
Show: