管理 Hyper-V 主机上的集合。
以下语法从托管对象格式 (MOF) 代码中简化,包括所有继承的属性。
语法
[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_CollectionManagementService : CIM_Service
{
};
成员
Msvm_CollectionManagementService 类具有以下类型的成员:
方法
Msvm_CollectionManagementService 类具有这些方法。
| 方法 | 说明 |
|---|---|
| AddMember | 将指定的 ManagedElement 添加为给定 CIM_CollectionOfMSEs 对象的成员。 |
| DefineCollection | 创建新的 CIM_CollectionOfMSEs 对象。 |
| DestroyCollection | 删除给定 CIM_CollectionOfMSEs 对象。 |
| RemoveMember | 删除指定 ManagedElement 作为给定 CIM_CollectionOfMSEs 对象的成员。 |
| RemoveMemberById | 删除作为具有给定标识符的 CIM_CollectionOfMSEs 成员的指定 ManagedElement。 即使不存在具有该标识符的对象,此操作也会成功。 |
| RenameCollection | 汇报给定的CIM_CollectionOfMSEs对象CIM_CollectionOfMSEs ElementName。 |
| StartService | 启动服务。 |
| StopService | 停止服务。 |
要求
| 要求 | 值 |
|---|---|
| 最低受支持的客户端 |
Windows 10 [仅限桌面应用] |
| 最低受支持的服务器 |
Windows Server 2016 |
| 命名空间 |
Root\virtualization\v2 |
| MOF |
|
| DLL |
|