inProcessServer) 中的 com4:Class (
定义进程内服务器类注册。
元素层次结构
<com4:Class>
语法
<com4:Class
ThreadingModel = 'A string that can have one of the following values: "Both", "STA", "MTA", "MainSTA", or "Neutral".'
Virtualization = 'A string that can have one of the following values: "enabled" or "disabled".'
ProgId = '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).'
VersionIndependentProgId = '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).'
AutoConvertTo = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
InsertableObject = 'A boolean value.'
ShortDisplayName = 'A string with a value between 1 and 40 characters in length.'
Id = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
DisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'>
<!-- Child elements -->
ImplementedCategories
Conversion
DataFormats
MiscStatus
Verbs
DefaultIcon
ToolboxBitmap32
TypeLib
</com4:Class>
特性和元素
属性
属性 | 说明 | 数据类型 | 必须 | 默认值 |
---|---|---|---|---|
ThreadingModel | 用于加载 DLL 的线程模型。 | 可以具有以下值之一的字符串: Both、 STA、 MTA、 MainSTA 或 Neutral。 | 是 | |
虚拟化 | 指定在加载 类时是否使用虚拟化。 | 可以具有以下值之一的字符串:启用或禁用。 | 是 | |
ProgId | 将 ProgID) 编程标识符 (与 CLSID 相关联。 | 一个字母数字字符串,由句点分隔,其值长度在 1 到 255 个字符 (例如,Foo.Bar 或 Foo.Bar.1) 。 | 否 | |
VersionIndependentProgId | 将 ProgID 与 CLSID 相关联。 此值用于确定对象应用程序的最新版本。 | 一个字母数字字符串,由句点分隔,其值长度在 1 到 255 个字符 (例如,Foo.Bar 或 Foo.Bar.1) 。 | 否 | |
AutoConvertTo | 指定给定对象类到新对象类的自动转换。 | 格式为 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 的 GUID。 | 否 | |
InsertableObject | 指示此类可插入。 | 布尔值。 | 否 | |
ShortDisplayName | 类显示名称的简短版本。 | 一个字符串,其值的长度介于 1 到 40 个字符之间。 | 否 | |
Id | Id 属性对应于 CLSID。 | 格式为 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 的 GUID。 | 是 | |
DisplayName | 一个可本地化的字符串,对应于 CLSID 的键的默认值。 | 一个字符串,其值长度介于 1 到 256 个字符之间。 此字符串可本地化。 | 否 |
子元素
子元素 | 描述 |
---|---|
ImplementedCategories | 指定由 类实现的类别。 |
转换 | 指定应用程序可以读取和写入的格式。 |
DataFormats | 指定应用程序支持的默认和main数据格式。 |
MiscStatus | 指定如何创建和显示 对象。 |
动词 | 指定要为应用程序注册的谓词。 |
DefaultIcon | 为对象的图标呈现提供默认图标信息。 |
ToolboxBitmap32 | 标识要用于工具栏或工具箱按钮表面的 16 x 16 位图的模块名称和资源 ID。 |
TypeLib | 类或接口的类型库。 |
父元素
父元素 | 描述 |
---|---|
com4:InProcessServer | 使用一个或多个类注册注册进程内服务器。 |
要求
项 | 值 |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/com/windows10/4 |
Minimum OS Version | Windows 10 (内部版本 20348) |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈