次の方法で共有


scope 要素 (検索コネクタ スキーマ)

オプション <の scope> 要素は、この特定の検索コネクタの <スコープの包含と除外を定義する scopeItem> 要素のコレクションを指定します。 scope> が存在する場合<は、少なくとも 1 つの <scopeItem 要素を>含む必要があります。 この要素には属性はありません。

構文

<!-- scope -->
    <xs:complexType name="searchConnectorDescriptionType">
        <xs:all>
        ...
        <xs:element name="scope" minOccurs="0">
            <xs:complexType>
                <xs:sequence minOccurs="0">
                    <xs:element name="scopeItem" maxOccurs="unbounded">
                       ...
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
        ...
        </xs:all>
        <xs:attribute name="publisher" type="xs:string"/>
        <xs:attribute name="product" type="xs:string"/>
    </xs:complexType>

要素情報

Parent 要素 子要素
searchConnectorDescriptionType 要素 (検索コネクタ スキーマ) scopeItem 要素 (検索コネクタ スキーマ)

 

解説

<scope> 要素と <scopeItem> 要素を使用して、検索する場所と、検索から除外する場所を特定します。

次の例は、C:\ExampleFolder と、C:\ExampleFolder\ExcludeMe を除くすべての子フォルダーを含む検索スコープを示しています。

<?xml version="1.0" encoding="UTF-8"?>
<searchConnectorDescription xmlns="http://schemas.microsoft.com/windows/2009/searchConnector">
    ...
    <scope>
        <scopeItem>
            <mode>Include</mode>
            <depth>Deep</depth>
            <url>C:\ExampleFolder</url>
        </scopeItem>
        <scopeItem>
            <mode>Exclude</mode>
            <depth>Deep</depth>
            <url>C:\ExampleFolder\ExcludeMe</url>
        </scopeItem>
    </scope>
    ...
</searchConnectionDescription>