定义进程内处理程序类注册。
元素层次结构
<包>
<应用程序>
<应用程序>
<扩展>
<com4:InProcessHandler>
<com4:Class>
<扩展>
<com4:InProcessHandler>
<com4:Class>
语法
<com4:Class
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>
属性和元素
属性
| 属性 |
描述 |
数据类型 |
必填 |
默认值 |
|
虚拟化 |
指定加载类时是否使用虚拟化。 |
可以具有以下值之一的字符串:启用 或禁用 。 |
是的 |
|
|
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-xxxx-xxx 的 GUID。 |
不 |
|
|
InsertableObject |
指示此类可插入。 |
布尔值。 |
不 |
|
|
ShortDisplayName |
类显示名称的简短版本。 |
长度介于 1 到 40 个字符之间的字符串。 |
不 |
|
|
ID |
ID 属性对应于 CLSID (HKCR\CLSID{MyGuid})。 |
格式为 xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxx 的 GUID。 |
是的 |
|
|
DisplayName |
类显示名称。 |
长度介于 1 到 256 个字符之间的字符串。 此字符串可本地化。 |
不 |
|
子元素
父元素
要求
| 项目 |
价值 |
|
Namespace |
http://schemas.microsoft.com/appx/manifest/com/windows10/4 |
|
最低 OS 版本 |
Windows 10 (内部版本 20348) |