省略可能な <scope> 要素は、この特定の検索コネクタのスコープの包含と除外 <定義する scopeItem> 要素のコレクションを指定します。 スコープ><存在する場合は、<scopeItem> 要素が少なくとも 1 つ含まれている必要があります。 この要素には属性がありません。
構文
<!-- 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 要素 (検索コネクタ スキーマ) をします。 |
備考
検索する場所と検索から除外する場所を識別するには、<スコープ> と 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>