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>
元素信息
父元素 | 子元素 |
---|---|
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>