scope 요소(검색 커넥터 스키마)
선택적 <scope> 요소는 이 특정 검색 커넥터에 <대한 scope 포함 및 제외를 정의하는 scopeItem> 요소의 컬렉션을 지정합니다. scope 있는 경우 <scopeItem> 요소를 하나 <이상 포함해야> 합니다. 이 요소에는 특성이 없습니다.
Syntax
<!-- 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>
요소 정보
부모 요소 | 자식 요소 |
---|---|
searchConnectorDescriptionType 요소(Search 커넥터 스키마) | scopeItem 요소(검색 커넥터 스키마). |
설명
<scope> 및 <scopeItem> 요소를 사용하여 검색해야 하는 위치와 검색에서 제외해야 하는 위치를 식별합니다.
예제
다음 예제에서는 C:\ExampleFolder 및 C:\ExampleFolder\ExcludeMe를 제외한 모든 자식 폴더를 포함하는 검색 scope 보여 줍니다.
<?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>