次の方法で共有


MSFT_SMReplicaPeer class

Represents a replica peer, which is an object that has a replication relationship in the subsystem.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[Dynamic, Provider("WMIStorage"), AMENDMENT]
class MSFT_SMReplicaPeer : MSFT_SMStorageObject
{
  String               ObjectId;
  String               Identifier;
  UInt16               PeerObjectType;
  String               PeerObjectId;
  String               PeerObjectName;
  String               PeerUniqueId;
  String               PeerSystemName;
  String               PeerProviderURI;
  Boolean              IsCIMReplicationEntityBased;
  Boolean              IsPrimary;
  MSFT_SMStorageObject Element;
};

Members

The MSFT_SMReplicaPeer class has these types of members:

Properties

The MSFT_SMReplicaPeer class has these properties.

Element

Data type: MSFT_SMStorageObject

Access type: Read/write

Qualifiers: ModelCorrespondence ("MSFT_SMReplicaPeer.PeerObjectType")

The storage object that indicates the object type of the replica peer when the PeerObjectType property is set to "Embedded Instance".

Identifier

Data type: String

Access type: Read-only

Qualifiers: Required

The ID of the logical instance of the object. This ID must be unique within the scope of the storage system.

This property is inherited from MSFT_SMStorageObject.

IsCIMReplicationEntityBased

Data type: Boolean

Access type: Read-only

Indicates the origin of the replication.

IsPrimary

Data type: Boolean

Access type: Read-only

True of the replica peer is a primary replica; otherwise, False.

ObjectId

Data type: String

Access type: Read-only

Qualifiers: Key, Required

The ID of this class instance. This ID must be unique within the scope of the Windows Storage Management server that hosts the provider object.

This property is inherited from MSFT_SMStorageObject.

PeerObjectId

Data type: String

Access type: Read-only

The object ID of the replica peer.

PeerObjectName

Data type: String

Access type: Read-only

The name of the replica peer within the storage subsystem.

PeerObjectType

Data type: UInt16

Access type: Read-only

The object type of the replica peer.

The possible values are:

StorageVolume (4)

Volume (5)

Reserved

6 32767

Partition (32768)

ReplicationGroup (32769)

StorageSystem (32770)

PeerProviderURI

Data type: String

Access type: Read-only

The URI of the SMI-S provider. The URI includes the protocol, computer host name, and port of the SMI-S server.

PeerSystemName

Data type: String

Access type: Read-only

Qualifiers: Required

The subsystem name of the replica peer within the storage subsystem.

PeerUniqueId

Data type: String

Access type: Read-only

Qualifiers: Required

The unique ID of the replica peer within the storage subsystem.

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_SMStorageObject

Windows Storage Management WMI Provider