Udostępnij za pośrednictwem


libraryDescription, element (schemat biblioteki)

Element <libraryDescription> jest kontenerem najwyższego poziomu dla definicji biblioteki. Ten element jest wymagany.

Składnia

<!-- libraryDescription -->
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="https://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:include schemaLocation="commonTypes-ms.xsd"/>
    <xs:element name="libraryDescription">
        <xs:complexType>
            <xs:all>
                <xs:element name="name" type="xs:string"/>
                <xs:element name="ownerSID" minOccurs="0"/>
                <xs:element name="version" type="xs:int" minOccurs="0"/>
                <xs:element name="isLibraryPinned" type="xs:boolean" default="false" minOccurs="0"/>
                <xs:element name="iconReference" type="xs:string" minOccurs="0"/>
                <xs:element name="propertyStore" minOccurs="0">
                    <xs:complexType>
                        <xs:complexContent>
                            <xs:extension base="propertyStoreType"/>
                        </xs:complexContent>
                    </xs:complexType>
                </xs:element>
                <xs:element name="templateInfo" minOccurs="0">
                    <xs:complexType>
                        <xs:all>
                            <xs:element name="folderType" minOccurs="0"/>
                        </xs:all>
                    </xs:complexType>
                </xs:element>
                <xs:element name="searchConnectorDescriptionList" minOccurs="0">
                    <xs:complexType>
                        <xs:sequence minOccurs="0">
                            <xs:element name="searchConnectorDescription" 
                             type="searchConnectorDescriptionType" minOccurs="0" 
                             maxOccurs="unbounded"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:all>
        </xs:complexType>
    </xs:element>
</xs:schema>

Informacje o elementach

Element nadrzędny Elementy podrzędne
name, element (schemat biblioteki). Wymagane.
ownerSID, element (schemat biblioteki). Fakultatywny.
version, element (schemat biblioteki). Fakultatywny.
isLibraryPinned, element (schemat biblioteki). Fakultatywny.
iconReference, element (schemat biblioteki). Fakultatywny.
propertyStore, element (schemat biblioteki). Fakultatywny.
templateInfo, element (schemat biblioteki). Fakultatywny.
searchConnectorDescriptionList, element (schemat biblioteki). Wymagane.

 

Uwagi

Każda biblioteka może zawierać co najmniej jedną lokalizację, którą można przeglądać lub przeszukiwać za pomocą Eksploratora Windows. Lokalizacje są definiowane przez łączniki wyszukiwania przy użyciu <searchConnectorDescription> elementów w <searchConnectorDescriptionList> elementu kontenera.

Biblioteka może mieć unikatowy zestaw właściwości, a lokalizacje w bibliotece mogą również mieć unikatowe zestawy właściwości. Te właściwości są definiowane w <właściwości> elementów w <propertyStore> elementu kontenera.

Przykład

<?xml version="1.0" encoding="UTF-8"?>
<libraryDescription xmlns="http://schemas.microsoft.com/windows/2009/library">
    <name>@shell32.dll,-34575</name>
    <ownerSID>S-1-5-21-379071477-2495173225-776587366-1000</ownerSID>
    <version>1</version>
    <isLibraryPinned>true</isLibraryPinned>
    <iconReference>imageres.dll,-1002</iconReference>
    <templateInfo>
        <folderType>{7d49d726-3c21-4f05-99aa-fdc2c9474656}</folderType>
    </templateInfo>
    <searchConnectorDescriptionList>
        <searchConnectorDescription publisher="Microsoft" product="Windows">
            <description>@shell32.dll,-34577</description>
            <isDefaultSaveLocation>true</isDefaultSaveLocation>
            <simpleLocation>
                <url>knownfolder:{FDD39AD0-238F-46AF-ADB4-6C85480369C7}</url>
                <serialized>MBAAAEAFCAAA...MFNVAAAAAA</serialized>
            </simpleLocation>
        </searchConnectorDescription>
        <searchConnectorDescription publisher="Microsoft" product="Windows">
            <description>@shell32.dll,-34579</description>
            <isDefaultNonOwnerSaveLocation>true</isDefaultNonOwnerSaveLocation>
            <simpleLocation>
                <url>knownfolder:{ED4824AF-DCE4-45A8-81E2-FC7965083634}</url>
                <serialized>MBAAAEAFCAAA...HJIfK9AAAAAA</serialized>
            </simpleLocation>
        </searchConnectorDescription>
    </searchConnectorDescriptionList>
</libraryDescription>

schematu opisu biblioteki

Łącznik wyszukiwania opis schematu