大网数据广告活动
Hyper-V与虚拟化

Msvm_ReplicationProvider class

· 52CE 我爱测

Represents the available providers for replication.

Represents the available providers for replication.

The following syntax is simplified from MOF code and includes these inherited properties.

Syntax

[Dynamic, Provider("VmmsWmiInstanceAndMethodProvider"), AMENDMENT]
class Msvm_ReplicationProvider : CIM_ManagedSystemElement
{
  string InstanceID;
  string Caption;
  string Description;
  string ElementName;
  string Name;
  uint16 OperationalStatus[];
};

Members

The Msvm_ReplicationProvider class has these types of members:

Properties

The Msvm_ReplicationProvider class has these properties.

Caption

Data type: string

Access type: Read-only

Qualifiers: MaxLen (64)

A short description of the object. This property is inherited from CIM_ManagedElement. For this object, the value is:

"Replication Provider"

Description

Data type: string

Access type: Read-only

A description of the object. This property is inherited from CIM_ManagedElement. For external providers, the value is provided by them. For host to host inbuilt provider, the value is:

"Virtual machine replication provider to Hyper-V host"

ElementName

Data type: string

Access type: Read-only

A display name for the endpoint provider. This property is inherited from CIM_ManagedElement.

For host to host inbuilt provider, this property is always set to:

"Virtual machine replication provider to Hyper-V host"

InstanceID

Data type: string

Access type: Read-only

Qualifiers: Key, MaxLen (256)

The WMI instance ID, which identifies the provider. This property is inherited from CIM_ManagedElement. The format of this property is "Microsoft:<host-machine-name>\ReplicationProvider\<provider-Name>."

Name

Data type: string

Access type: Read-only

Qualifiers: Key, Override ("Name"), MaxLen (256)

The globally unique identifier (GUID) of the provider that identifies the endpoint provider. This property is inherited from CIM_ManagedSystemElement.

In the case of an external provider, this property is the CLSID of the provider COM class object. For host to host inbuilt provider, this property is fixed as:

"22391CDC-272C-4DDF-BA88-9BEFB1A0975C"

OperationalStatus

Data type: uint16 array

Access type: Read-only

The current statuses of the object. This property is inherited from CIM_ManagedSystemElement, and each array element is always set to:

S_OK (2)

Remarks

You can use any of available providers and the Msvm_ReplicationRelationship class to enable a replication relationship. Hyper-V by default chooses the inbuilt host to host provider, which can be changed while creating the replication. Hyper-V management service communicates with an external provider by using COM.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Namespace Root\Virtualization\V2
MOF WindowsVirtualization.V2.mof
DLL Vmms.exe

See also

CIM_ManagedSystemElement

CIM_ManagedSystemElement

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。