com:Class (在 ExeServer)

定义 ExeServer 类注册。

元素层次结构

<Package>
   └─ <Extensions>
      └─ <com:Extension>
         └─ <com:ComServer>
            └─ <com:ExeServer>
               └─ <com:Class>
   └─ <Applications>
      └─ <Application>
         └─ <Extensions>
            └─ <com:Extension>
               └─ <com:ComServer>
                  └─ <com:ExeServer>
                     └─ <com:Class>

Syntax

<com:Class
  EnableOleDefaultHandler = 'An optional boolean value.'
  ProgId = 'An optional alphanumeric string separated by a period between 1 and 255 characters in length, e.g. Foo.Bar or Foo.Bar.1'
  VersionIndependentProgId = 'An optional alphanumeric string separated by a period between 1 and 255 characters in length, e.g. Foo.Bar or Foo.Bar.1'
  AutoConvertTo = 'An optional GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
  InsertableObject = 'An optional boolean value.'
  ShortDisplayName = 'An optional string between 1 and 40 characters in length.'
  Id = 'A required GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
  DisplayName = 'An optional string between 1 and 256 characters in length. This string is localizable.' >

  <!-- Child elements -->
  com:ImplementedCategories?
  com:Conversion?
  com:DataFormats?
  com:MiscStatus?
  com:Verbs?
  com:DefaultIcon?
  com:ToolboxBitmap32?

</com:Class>

密钥

? 可选(零或一)

特性

Attribute 说明 数据类型 必需 默认值
EnableOleDefaultHandler 如果 InprocHandler32 键的默认值为“Ole32.dll”,则应将其设置为 true。 否则,应省略它。 默认值为 false。 可选的布尔值。
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-xxxxxxxxx 的可选 GUID。
InsertableObject 指示此类可插入。 可选的布尔值。
ShortDisplayName 类显示名称的简短版本。 长度介于 1 到 40 个字符之间的可选字符串。
ID ID 属性对应于 CLSID (HKCR\CLSID{MyGuid})。 格式为 xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxx 的 GUID。 Yes
显示名称 对应于 CLSID 键的默认值的可本地化字符串。 长度介于 1 到 256 个字符之间的可选字符串。 此字符串可本地化。

子元素

子元素 说明
com:ImplementedCategories 指定由类实现的类别。
com:Conversion 指定应用程序可以读取和写入的格式。
com:DataFormats 指定应用程序支持的默认和主要数据格式。
com:MiscStatus 指定如何创建和显示对象。
com:Verbs 指定要为应用程序注册的谓词。
com:DefaultIcon 为对象的标志性演示文稿提供默认图标信息。
com:ToolboxBitmap32 标识用于工具栏或工具箱按钮面的 16 x 16 位图的模块名称和资源 ID。

父元素

父元素 说明
com:ExeServer 向一个或多个类注册注册 ExeServer。

要求

物品 价值
命名空间 http://schemas.microsoft.com/appx/manifest/com/windows10
最低 OS 版本 Windows 10版本 1703 (内部版本 15063)

注解

在 ExeServer 下注册的每个都必须具有对应于 CLSIDID 属性。

示例