com4:ExeServer) 中的 com4:Class (

定义 ExeServer 类注册。

元素层次结构

<包>

    <应用程序>

         <应用程序>

              <扩展>

                   com4:ExeServer

                        <com4:Class>

语法

<com4:Class
  EnableOleDefaultHandler = 'A boolean value.'
  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>

特性

特性和元素

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-xxxxxxxxxxxx 的 GUID。
InsertableObject 指示此类可插入。 布尔值。
ShortDisplayName 类显示名称的简短版本。 一个字符串,其值的长度介于 1 到 40 个字符之间。
Id Id 属性对应于 CLSID (HKCR\CLSID{MyGuid}) 。 格式为 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 的 GUID。
DisplayName 一个可本地化的字符串,对应于 CLSID 的键的默认值。 一个字符串,其值长度介于 1 到 256 个字符之间。

子元素

子元素 描述
ImplementedCategories 指定由 类实现的类别。
转换 指定应用程序可以读取和写入的格式。
DataFormats 指定应用程序支持的默认和main数据格式。
MiscStatus 指定如何创建和显示 对象。
动词 指定要为应用程序注册的谓词。
DefaultIcon 为对象的图标呈现提供默认图标信息。
ToolboxBitmap32 标识要用于工具栏或工具箱按钮表面的 16 x 16 位图的模块名称和资源 ID。
TypeLib 类或接口的类型库。

父元素

父元素 描述
com4:ExeServer 使用一个或多个类注册注册 ExeServer。

要求

Namespace http://schemas.microsoft.com/appx/manifest/com/windows10/4
Minimum OS Version Windows 10 (内部版本 20348)