EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

enum

Used to assign enumerated text to discrete values. Any number of these elements may exist under an enumeratedList. Programmatically, these are represented as IPropertyEnumType objects, whose IPropertyEnumType::GetEnumType method returns PET_DISCRETEVALUE.

Syntax


<!-- enum -->
<xs:element name="enum" minOccurs="0" maxOccurs="unbounded">
    <xs:complexType>
        <xs:sequence>
            <xs:element ref="image" minOccurs="0" maxOccurs="1"/>
        </xs:sequence>
        <xs:attribute name="value" type="xs:string" use="required"/>
        <xs:attribute name="text" type="xs:string" use="required"/>
        <xs:attribute name="mnemonics" type="xs:string"/>
    </xs:complexType>
</xs:element>

Element Information

Parent ElementChild Elements
enumeratedList none

 

Attributes

AttributeDescription
valuePublic. Required. The discrete value (string or number) to be assigned enumerated text to.
textPublic. Required. The text used to display the enumerated value. The syntax allows for a direct display string or an indirect display string reference; use the indirect display string so that it can be localized.
mnemonicsWindows 7 and later. Public. Optional. A list of mnemonic values that can be used to refer to the property in search queries. The list is delimited with the '|' character.

 

 

 

Contribuições da comunidade

ADICIONAR
Mostrar:
© 2014 Microsoft