使用一个或多个类注册注册 ServiceServer。
元素层次结构
<包>
<应用程序>
<应用程序>
<扩展>
<com4:ServiceServer>
语法
<com4:ServiceServer
ServiceName = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
Arguments = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
DisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'
LaunchAndActivationPermission = 'An [SDDL string](/windows/win32/secauthz/security-descriptor-string-format) value.' >
<!-- Child elements -->
Class
ClassReference
</com4:ServiceServer>
特性和元素
属性
| 属性 |
说明 |
数据类型 |
必须 |
默认值 |
| ServiceName |
承载 COM 服务器的 Windows 服务的名称。 |
值长度介于 1 到 32767 个字符之间的字符串,开头和结尾处有一个非空格字符。 |
是 |
|
| 参数 |
服务的命令行参数。 |
值长度介于 1 到 32767 个字符之间的字符串,开头和结尾处有一个非空格字符。 |
是 |
|
| DisplayName |
对应于默认 AppID 密钥值的可本地化字符串。 |
值长度介于 1 到 256 个字符之间的字符串。 |
是 |
|
| LaunchAndActivationPermission |
与 AppID 密钥的 LaunchPermission 值相对应的 SDDL 字符串 。 |
SDDL 字符串值。 |
是 |
|
子元素
| 子元素 |
说明 |
| 类 |
定义 ExeServer 类注册。 |
| ClassReference |
指定与注册的 ExeServer 关联的类,并设置特定于 ExeServer 的注册详细信息。 |
父元素
要求
| 项 |
值 |
| Namespace |
http://schemas.microsoft.com/appx/manifest/com/windows10/4 |
| Minimum OS Version |
Windows 10 (内部版本 20348) |