共用方式為


Msvm_CollectionManagementService 類別

管理 Hyper-V 主機上的集合。

下列語法已經過受管理物件格式 (MOF) 程式碼簡化,並包含所有已繼承的屬性。

語法

[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_CollectionManagementService : CIM_Service
{
};

成員

Msvm_CollectionManagementService類別具有下列類型的成員:

方法

Msvm_CollectionManagementService類別具有這些方法。

方法 Description
AddMember 將指定的 ManagedElement 新增為指定 之 CIM_CollectionOfMSEs 物件的成員。
DefineCollection 建立新的 CIM_CollectionOfMSEs 物件。
DestroyCollection 刪除指定的 CIM_CollectionOfMSEs 物件。
RemoveMember 將指定的 ManagedElement 移除為指定 之 CIM_CollectionOfMSEs 物件的成員。
RemoveMemberById 將指定的 ManagedElement 移除為具有指定識別碼 之CIM_CollectionOfMSEs 的成員。 即使具有該識別碼的物件不存在,這也會成功。
RenameCollection 更新指定之CIM_CollectionOfMSEs物件的 ElementName。
StartService 啟動服務。
StopService 停止服務。

規格需求

需求
最低支援的用戶端
Windows 10 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2016
命名空間
Root\virtualization\v2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

另請參閱

CIM_Service