com:ProxyStub

注册代理存根。

元素层次结构

<包>

    <应用程序>

         <应用程序>

              <扩展>

                   <com:Extension>

                        <com:ComInterface>

                             <com:ProxyStub>

语法

<com:ProxyStub
  Id = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
  DisplayName = 'An optional string with a value between 1 and 256 characters in length. This string is localizable.'
  Path = 'A string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *. >.'

  <!-- Child elements -->
  com2:ProxyStubDll?

</com:ProxyStub>

密钥

? 可选 (零个或一个)

特性和元素

属性

属性 说明 数据类型 必须 默认值
Id 代理存根的 CLSID。 格式为 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 的 GUID。
DisplayName 一个可本地化的字符串,对应于代理存根的 CLSID 密钥的默认值。 值长度介于 1 到 256 个字符之间的可选字符串。
路径 相对于包根目录的路径。 路径必须引用包中的文件。 值长度介于 1 到 256 个字符之间的字符串,不能包含以下字符:<>:"|?、 或 *

子元素

子元素 描述
com2:ProxyStubDll 指定 ProxyStub DLL 的路径和处理器体系结构。

父元素

父元素 描述
com:ComInterface 声明 类型为 windows.comInterface 的包扩展点。 comInterface 扩展可能包括三种类型的注册: InterfaceProxyStubTypeLib

注解

代理存根元素必须具有 Path 属性或一个或多个 ProxyStubDll 子元素,但不能同时具有这两个元素。

要求

命名空间 http://schemas.microsoft.com/appx/manifest/com/windows10
Minimum OS Version Windows 10版本 1703 (内部版本 15063)