propertyDescription

描述单个唯一规范属性。 系统中要提供的每个此类属性都必须具有相应的 propertyDescription 元素。

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>

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>

元素信息

Parent 元素 子元素
propertyDescriptionList searchInfo
labelInfo
typeInfo
aliasInfo
displayInfo
relatedPropertyInfo

 

属性

属性 描述
名字 必填。 规范属性名称,对系统是唯一的;例如,System.Rating。 此字符串的类型为规范类型,限制为 64 个字符。 名称区分大小写,应使用以下语法:Publisher.Application.PropertyName。 IPropertyDescription::GetCanonicalName 返回此值。
formatID 必填。 属性的格式标识符(FMTID)。 该值必须包含括大括号;例如,{64440492-4C8B-11D1-8B70-080036B11A03} IPropertyDescription::GetPropertyKey 返回此值。
propID 必填。 属性标识符(PID):例如,9 IPropertyDescription::GetPropertyKey 返回此值。 此值必须大于或等于 2。 值 0 和 1 由系统保留。