Msvm_VirtualSystemReferencePointService 類別的 CreateReferencePoint 方法
建立虛擬系統的參考點。
語法
uint32 CreateReferencePoint(
[in] Msvm_ComputerSystem REF AffectedSystem,
[in] string ReferencePointSettings,
[in] uint16 ReferencePointType,
[in, out] Msvm_VirtualSystemReferencePoint REF ResultingReferencePoint,
[out] CIM_ConcreteJob REF Job
);
參數
-
AffectedSystem [in]
-
參考受影響虛擬系統的 Msvm_ComputerSystem 。
-
ReferencePointSettings [in]
-
包含參數設定。
-
ReferencePointType [in]
-
要求的參考點類型:
-
以記錄為基礎的 (0)
-
根據 Hyper-V 複本記錄追蹤。
-
RCT ( 1)
-
根據虛擬磁片的復原變更追蹤。
ResultingReferencePoint [in, out]
產生的虛擬系統參考點
作業 [out]
如果作業長時間執行,則可以選擇性地傳回作業。 在此情況下,代表新虛擬系統參考點之Msvm_VirtualSystemReferencePoint類別的實例會透過CIM_AffectedJobElement關聯來呈現,其與代表虛擬系統參考點之Msvm_VirtualSystemReferencePoint類別的新實例,以及設定為 5 (Create) 的 ElementEffects值。
傳回值
成功時,傳回 0;否則,傳回錯誤。
-
已完成 , (0)
-
不支援 (1)
-
失敗 (2)
-
逾 時 (3)
-
不正確參數 (4)
-
不正確狀態 (5)
-
不正確類型 (6)
-
DMTF 保留 (。。)
-
已檢查方法參數 - 作業啟動 (4096)
-
保留 (4097..32767)
-
廠商特定 (32768..65535)
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 |
Windows 10 [僅限傳統型應用程式] |
最低支援的伺服器 |
Windows Server 2016 |
命名空間 |
Root\virtualization\v2 |
MOF |
|
DLL |
|