Export (0) Print
Expand All

scope Element (Search Connector Schema)

[This documentation is preliminary and is subject to change.]

The optional <scope> element specifies a collection of <scopeItem> elements that define the scope inclusions and exclusions for this particular search connector. If <scope> is present, it MUST contain at least one <scopeItem> element. This element has no attributes.


<!-- scope -->
    <xs:complexType name="searchConnectorDescriptionType">
        <xs:element name="scope" minOccurs="0">
                <xs:sequence minOccurs="0">
                    <xs:element name="scopeItem" maxOccurs="unbounded">
        <xs:attribute name="publisher" type="xs:string"/>
        <xs:attribute name="product" type="xs:string"/>

Element Information

Parent ElementChild Elements
searchConnectorDescriptionType Element (Search Connector Schema)scopeItem Element (Search Connector Schema).


Use the <scope> and <scopeItem> elements to identify which locations should be searched and which locations should be excluded from search.


The following example shows a search scope that includes C:\ExampleFolder and all its childe folders except C:\ExampleFolder\ExcludeMe.

<?xml version="1.0" encoding="UTF-8"?>
<searchConnectorDescription xmlns="http://schemas.microsoft.com/windows/2009/searchConnector">

Community Additions

© 2014 Microsoft