locationProvider-Element (Search Connector Schema)

Das optionale < locationProvider-Element > gibt den Suchanbieter an, der vom Suchconnector des Webdienstanbieters verwendet werden soll. Dieses Element enthält ein obligatorisches Attribut und ein optionales untergeordnetes Element.

Syntax

<!-- locationProvider -->
    <xs:complexType name="searchConnectorDescriptionType">
        <xs:all>
            ...
            <xs:element name="locationProvider" minOccurs="0">
                <xs:complexType>
                    <xs:all>
                        <xs:element name="propertyBag" type="propertyStoreType" minOccurs="0"/>
                    </xs:all>
                <xs:attribute name="clsid" use="required"/>
                <xs:attribute name="codebase" type="xs:string"/>
            </xs:element>
            ...
        </xs:all>
        <xs:attribute name="publisher" type="xs:string"/>
        <xs:attribute name="product" type="xs:string"/>
    </xs:complexType>

Elementinformationen

Übergeordnetes Element Untergeordnete Elemente
searchConnectorDescriptionType-Element (Search Connector Schema) propertyBag-Element (Connectorschema suchen)

Attribute

attribute Beschreibung
@clsid Erforderlich. Der Klassenbezeichner (CLSID) des Suchanbieters.
codebase Optional.

Hinweise

Der @clsid Attributwert für den OpenSearch Anbieter ist {48E277F6-4E74-4cd6-BA6F-FA4F42898223}.

Dateisystem- und Protokollhandlerbasierte Suchconnectors können stattdessen das < > simpleLocation-Element verwenden. Wenn < locationProvider > vorhanden ist, darf in der Beschreibung < des Suchconnectors KEIN simpleLocation-Element vorhanden > sein.

Beispiel für ein locationProvider-Element

<locationProvider clsid="{48E277F6-4E74-4cd6-BA6F-FA4F42898223}">
    <propertyBag>
        <property name="OpenSearchShortName">MSDN</property>
        <property name="OpenSearchQueryTemplate">https://social.msdn.microsoft.com/Search/Feed.aspx?locale=en-US&Query={searchTerms}&format=RSS&StartIndex={startIndex}</property>
        <property name="MaximumResultCount" type="uint32">100</property>
    </propertyBag>
</locationProvider>