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

 

屬性

屬性 描述
NAME 必要。 系統唯一的正式屬性名稱;例如, System.Rating 。 此字串的類型為標準類型,限制為 64 個字元。 名稱區分大小寫,而且應該使用下列語法:Publisher.Application.PropertyName。 IPropertyDescription::GetCanonicalName 會傳回此值。
formatID 必要。 屬性的格式識別碼 (FMTID) 。 此值必須包含大括弧;例如, {64440492-4C8B-11D1-8B70-080036B11A03}IPropertyDescription::GetPropertyKey 會傳回此值。
propID 必要。 PID) (屬性識別碼;例如, 9IPropertyDescription::GetPropertyKey 會傳回此值。 此值必須大於或等於 2。 系統會保留值 0 和 1。