次の方法で共有


SetSecondaryReplicationGroup method of the MSFT_WvrAdminTasks class

Assigns a source to a destination replication group.

Syntax

uint32 SetSecondaryReplicationGroup(
  [in]  string ReplicationGroupName,
  [in]  string PrimaryComputerName,
  [in]  string PrimaryReplicationGroupId,
  [in]  string PrimaryReplicationGroupName,
  [in]  string PartnershipId,
  [out] uint32 ReturnedErrorType
);

Parameters

ReplicationGroupName [in]

The name of the destination replication group.

PrimaryComputerName [in]

The FQDN or NetBIOS name of the computer.

PrimaryReplicationGroupId [in]

The ID of the source replication group.

PrimaryReplicationGroupName [in]

The name of the source replication group.

PartnershipId [in]

TBD

ReturnedErrorType [out]

Whether the returned error code is a warning or an error.

The possible values are.

Warning (1)

Error (2)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\StorageReplica
MOF
WVRCimProv.Mof
DLL
WvrCimProv.dll

See also

MSFT_WvrAdminTasks