mode 요소(검색 커넥터 스키마)

<mode> 요소는 검색 커넥터의 scope URL을 포함할지 제외할지 여부를 지정합니다. 허용되는 값은 IncludeExclude입니다. 이 요소에는 자식 요소가 없고 특성이 없습니다.

Syntax

<!-- mode -->
    <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:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:enumeration value="Include"/>
                                            <xs:enumeration value="Exclude"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:element>
                                ...
                            </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>

요소 정보

부모 요소 자식 요소
scopeItem 요소(검색 커넥터 스키마)  

 

설명

제외된 scope 검색하거나 검색할 수 없습니다. scopeItem URL을 중첩할 수 있습니다. 예를 들어 포함된 부모 URL을 추가하고 깊이 값이 Deep이고 자식 URL을 제외하여 부모 scope 및 해당 자식을 제외한 모든 자식을 포함할 수 있습니다.

예제

다음 예제에서는 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>Include</mode>
            <depth>Shallow</depth>
            <url>C:\ExampleFolder\ExcludeMe</url>
        </scopeItem>
    </scope>
    ...
</searchConnectionDescription>