XmlSchemaAttribute.Use 属性

定义

获取或设置有关属性的使用方式的信息。

public:
 property System::Xml::Schema::XmlSchemaUse Use { System::Xml::Schema::XmlSchemaUse get(); void set(System::Xml::Schema::XmlSchemaUse value); };
public System.Xml.Schema.XmlSchemaUse Use { get; set; }
member this.Use : System.Xml.Schema.XmlSchemaUse with get, set
Public Property Use As XmlSchemaUse

属性值

以下值之一:“无”、“禁止”、“可选”或“必需”。 默认值为“可选”。 Optional.

注解

如果指定,此属性必须具有下表中显示的值之一。

Enum Description
None 属性没有值。
Prohibited 不能使用特性。
Optional 属性是可选的,可能具有任何值。 这是默认值。
Required 属性必须显示一次。

适用于