com4:ClassReference (在 ManagedInProcessServer 中)

指定与托管进程内服务器关联的类并设置注册详细信息。

元素层次结构

<包>

     <应用程序>

          <应用程序>

               <扩展>

                    <com4:ManagedInProcessServer>

                         <com4:ClassReference>

     <扩展>

          <com4:ManagedInProcessServer>

               <com4:ClassReference>

语法

<com4:ClassReference
    ThreadingModel = 'A string with that can have one of the following values: "Both", "STA", "MTA", "MainSTA", or "Neutral".'
    ImplementationClass = 'An alphanumeric string, separated by a period, with a value between 1 and 255 characters in length (for example, Foo.Bar or Foo.Bar.1).'
    Virtualization = 'A string with that can have one of the following values: "enabled" or "disabled".'
    Id = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
></com4:ClassReference>

属性和元素

属性

属性 描述 数据类型 必填 默认值
ThreadingModel 具有下列值之一的字符串:两个STAMTAMainSTANeutral 是的
ImplementationClass 与类引用关联的实现类。 字母数字字符串,用句点分隔,长度介于 1 到 255 个字符之间(例如,Foo.Bar 或 Foo.Bar.1)。 是的
虚拟化 指定加载类时是否使用虚拟化。 具有下列值之一的字符串:启用 或禁用 是的
ID 要引用的 的 ID。 格式为 xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxx 的 GUID。 是的

子元素

没有。

父元素

Parent 元素 描述
com4:ManagedInProcessServer 使用一个或多个类注册注册托管进程内服务器。

要求

项目 价值
Namespace http://schemas.microsoft.com/appx/manifest/com/windows10/4
最低 OS 版本 Windows 10 (内部版本 20348)