Share via


GetReplicationSettings method of the MSFT_SMReplicationGroup class

Retrieves the replication settings for a replication group.

Syntax

UInt32 GetReplicationSettings(
  [out]           MSFT_SMReplicationSettings REF ReplicationSettings,
  [in, optional]  String                         username,
  [in, optional]  String                         password,
  [out]           MSFT_SMJob                 REF Job,
  [out, optional] MSFT_SMExtendedStatus          ExtendedStatus
);

Parameters

ReplicationSettings [out]

A reference to the object that represents the replication settings.

username [in, optional]

The username used to authenticate the SMI-S provider.

password [in, optional]

The password used to authenticate the SMI-S provider.

Job [out]

If this operation is asynchronous, when this method returns, this parameter contains a reference to the object that represents the job; otherwise this parameter is set to NULL.

ExtendedStatus [out, optional]

When this method returns, this parameter contains a MSFT_SMExtendedStatus object that contains detailed status information about the results of this operation.

Return value

Returns "0" on success, otherwise returns a WMI error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\Storage\SM
MOF
MsftStrgMan.mof
DLL
StorageService.dll

See also

MSFT_SMReplicationGroup