次の方法で共有


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

<scopeItem> 要素は、除外/包含スコープ テーブル内の 1 つのエントリを表します。 scopeItem><、フォルダーの包含と除外を制御し、結果の深さを制御し、スコープの場所を指定する 3 つの新しい要素を追加することで、標準の shellLinkType 型を拡張します。 <スコープ> 要素が存在する場合は、この要素が必要です。 これには 3 つの子要素があり、属性はありません。

構文

<!-- scopeItem -->
    <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:complexType>
                            <xs:all>
                                <xs:element name="mode" default="Include">
                                    ...
                                </xs:element>
                                <xs:element name="depth" default="Shallow" minOccurs="0">
                                    ...
                                </xs:element>
                                <xs:element name="url" type="xs:anyURI"/>
                            </xs:all>
                        </xs:complexType>
                    </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 要素 子要素
scope 要素 (検索コネクタ スキーマ) scope 要素 (検索コネクタ スキーマ)
  scope 要素 (検索コネクタ スキーマ)
  scopeItem url 要素 (検索コネクタ スキーマ) します。

 

備考

検索する場所と検索から除外する場所を識別するには、<スコープ> と 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>