次の方法で共有


RequestReplicationStateChangeEx method of the Msvm_ComputerSystem class

Requests a state change to the replication of the computer system.

Syntax

uint32 RequestReplicationStateChangeEx(
  [in]  string              ReplicationRelationship,
  [in]  uint16              RequestedState,
  [out] CIM_ConcreteJob REF Job,
  [in]  datetime            TimeoutPeriod
);

Parameters

ReplicationRelationship [in]

The replication relationship for state change request.

RequestedState [in]

The requested state for the replication.

Ready to start initial replication (1)

Waiting to complete initial replication (2)

Replicating (3)

Synced replication complete (4)

Suspend (7)

Cancel Resynchronize (9)

Cancel synchronization

Job [out]

A reference to an optional job for the operation if the operation is run asynchronously.

TimeoutPeriod [in]

A timeout period that specifies the maximum amount of time that the client expects the transition to the new state to take. A value of "0" or NULL indicates that the client has no time requirements for the transition. If this property does not contain "0" or NULL and the implementation does not support this parameter, the return code "Use Of Timeout Parameter Not Supported" is returned.

Return value

The possible return values are:

Completed with No Error (0)

Method Parameters Checked - Job Started (4096)

Failed (32768)

Access Denied (32769)

Not Supported (32770)

Status is unknown (32771)

Timeout (32772)

Invalid parameter (32773)

System is in use (32774)

Invalid state for this operation (32775)

Incorrect data type (32776)

System is not available (32777)

Out of memory (32778)

File not found (32779)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

Msvm_ComputerSystem