Partager via


ConvertSyncTypeToReplicationType method of the MSISCSITARGET_ReplicationServiceCapabilities class

Converts the specified SyncType, Mode, and LocalOrRemote parameter values to a SupportedReplicationTypes value. This method is the inverse of the ConvertReplicationTypeToSyncType method.

This method is inherited from the CIM_ReplicationServiceCapabilities class.

Syntax

uint32 ConvertSyncTypeToReplicationType(
  [in]  uint16 SyncType,
  [in]  uint16 Mode,
  [in]  uint16 LocalOrRemote,
  [out] uint16 SupportedReplicationTypes
);

Parameters

SyncType [in]

Specifies the type of copy.

Mirror (6)

Creates and maintains a copy of the source.

Snapshot (7)

Creates a point-in-time (PIT), virtual copy of the source.

Clone (8)

Creates an unsynchronized copy of the source.

DMTF Reserved

Reserved.

Vendor Specific

Reserved.

Mode [in]

Specifies whether the target elements are updated synchronously or asynchronously.

The possible values are.

Synchronous (2)

Asynchronous (3)

DMTF Reserved

4 0x7FFF

Vendor Specific

0x8000 = *value*

LocalOrRemote [in]

Specifies local or remote replication.

The possible values are.

Local (2)

Remote (3)

DMTF Reserved

4 0x7FFF

Vendor Specific

0x8000 = *value*

SupportedReplicationTypes [out]

On return, contains a SupportedReplicationTypes value that represents the specified parameters.

Return value

This method returns one of the following values.

Success (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

In Use (6)

DMTF Reserved (7 0x7FFF)

Vendor Specific (0x8000 = value )

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\CIMv2\Storage\iScsiTarget
MOF
SmIscsiTarget.mof
DLL
SmIScsiTargetProv.dll

See also

MSISCSITARGET_ReplicationServiceCapabilities

ConvertReplicationTypeToSyncType