次の方法で共有


AddMembers method of the MSFT_SMReplicationGroup class

Adds members to the replication group.

Syntax

UInt32 AddMembers(
  [in]            MSFT_SMStorageObject REF StorageObjects[],
  [in, optional]  String                   username,
  [in, optional]  String                   password,
  [out]           MSFT_SMJob           REF Job,
  [out, optional] MSFT_SMExtendedStatus    ExtendedStatus
);

Parameters

StorageObjects [in]

A reference to an array that contains the storage objects to add to the replication group.

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