scopeItem 요소(검색 커넥터 스키마)
<scopeItem> 요소는 제외/포함 scope 테이블의 단일 항목을 나타냅니다. <scopeItem>은 폴더 포함 및 제외를 제어하고 결과의 깊이를 제어하며 scope 위치를 지정하는 세 가지 새 요소를 추가하여 표준 shellLinkType 형식을 확장합니다. <scope> 요소가 있는 경우 이 요소가 필요합니다. 3개의 자식 요소와 특성이 없습니다.
Syntax
<!-- 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>
요소 정보
부모 요소 | 자식 요소 |
---|---|
scope 요소(검색 커넥터 스키마) | scope 요소(검색 커넥터 스키마). |
scope 요소(검색 커넥터 스키마). | |
scopeItem url 요소(검색 커넥터 스키마). |
설명
<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>