simpleLocation 元素 (搜索连接器架构)
<simpleLocation> 元素指定基于文件系统或基于协议处理程序的搜索连接器的位置。 此元素有两个子元素,没有属性。
语法
<!-- simpleLocation -->
<xs:complexType name="searchConnectorDescriptionType">
<xs:all>
...
<xs:element name="simpleLocation" type="shellLinkType" minOccurs="0">
<xs:all>
<xs:element name="url" type="xs:anyURI"/>
<xs:element name="serialized" minOccurs="0"/>
</xs:all>
</xs:element>
...
</xs:all>
<xs:attribute name="publisher" type="xs:string"/>
<xs:attribute name="product" type="xs:string"/>
</xs:complexType>
元素信息
Parent 元素 | 子元素 |
---|---|
searchConnectorDescriptionType 元素(搜索连接器架构) | simpleLocation url 元素(搜索连接器架构) |
序列化:此元素包含 base64 编码的 ShellLink,指向 <url> 元素中定义的位置。 Windows 7 从 <url> 元素的值创建 ShellLink,并在此库的第一次加载时正确更新此字段,因此作者应将其留空。 |
言论
当位置位于文件系统或连接器是已知的协议处理程序(如 mapi:)时,可以使用此元素,而不是 <locationProvider>。 如果存在 simpleLocation><,则不能有 <locationProvider> 元素。 对于 Web 服务提供商搜索连接器,请改用 <locationProvider> 元素。
例子
<?xml version="1.0" encoding="UTF-8"?>
<searchConnectorDescription xmlns="http://schemas.microsoft.com/windows/2009/searchConnector">
...
<simpleLocation>
<url>mapi://{S-1-5-21-2127521184-1604012920-1887927527-2779359}/</url>
</simpleLocation>
...
</searchConnectionDescription>