Dela via


propertyDescription

Beskriver en enda unik kanonisk egenskap. Varje sådan egenskap som är avsedd att vara tillgänglig i systemet måste ha motsvarande propertyDescription element.

Syntax för Windows 7

<!-- propertyDescription for Windows 7-->
<xs:element name="propertyDescription">
    <xs:complexType>
        <xs:all>
            <xs:element ref="searchInfo"          minOccurs="0" maxOccurs="1"/>
            <xs:element ref="labelInfo"           minOccurs="0" maxOccurs="1"/>
            <xs:element ref="typeInfo"            minOccurs="0" maxOccurs="1"/>
            <xs:element ref="aliasInfo"           minOccurs="0" maxOccurs="1"/>
            <xs:element ref="displayInfo"         minOccurs="0" maxOccurs="1"/>
            <xs:element ref="relatedPropertyInfo" minOccurs="0" maxOccurs="1"/>
        </xs:all>

        <xs:attribute name="formatID"  type="uuid" use="required"/>
        <xs:attribute name="propID"    type="propid" use="required"/>
        <xs:attribute name="name"      type="canonical-name"        use="required"/>
    </xs:complexType>
</xs:element>

Syntax för Vista

<!-- propertyDescription for Windows Vista-->
<xs:element name="propertyDescription">
    <xs:complexType>
        <xs:all>
            <xs:element ref="searchInfo"          minOccurs="0" maxOccurs="1"/>
            <xs:element ref="labelInfo"           minOccurs="0" maxOccurs="1"/>
            <xs:element ref="typeInfo"            minOccurs="0" maxOccurs="1"/>
            <xs:element ref="aliasInfo"           minOccurs="0" maxOccurs="1"/>
            <xs:element ref="displayInfo"         minOccurs="0" maxOccurs="1"/>
        </xs:all>

        <xs:attribute name="formatID"  type="uuid" use="required"/>
        <xs:attribute name="propID"    type="xs:nonNegativeInteger" use="required"/>
        <xs:attribute name="name"      type="canonical-name"        use="required"/>
    </xs:complexType>
</xs:element>

Elementinformation

Överordnat element Underordnade element
propertyDescriptionList searchInfo
labelInfo
typeInfo
aliasInfo
displayInfo
relateradePropertyInfo

 

Attribut

Attribut Beskrivning
Namn Krävs. Det kanoniska egenskapsnamnet som är unikt för systemet. till exempel System.Rating. Den här strängen är av typen canonical-type och är begränsad till 64 tecken. Namnet är skiftlägeskänsligt och bör använda följande syntax: Publisher.Application.PropertyName. IPropertyDescription::GetCanonicalName returnerar det här värdet.
formatID Krävs. Egenskapens formatidentifierare (FMTID). Värdet måste innehålla omslutande klammerparenteser. till exempel {64440492-4C8B-11D1-8B70-080036B11A03}. IPropertyDescription::GetPropertyKey returnerar det här värdet.
propID Krävs. Egenskapsidentifieraren (PID); till exempel 9. IPropertyDescription::GetPropertyKey returnerar det här värdet. Det här värdet måste vara större än eller lika med 2. Värdena 0 och 1 reserveras av systemet.