Msvm_ReplicationProvider class

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