DatabaseReplicaState.ReplicaRole 属性

Gets the role of the availability replica.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property ReplicaRole As AvailabilityReplicaRole 
    Get
用法
Dim instance As DatabaseReplicaState 
Dim value As AvailabilityReplicaRole 

value = instance.ReplicaRole
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public AvailabilityReplicaRole ReplicaRole { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property AvailabilityReplicaRole ReplicaRole {
    AvailabilityReplicaRole get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ReplicaRole : AvailabilityReplicaRole
function get ReplicaRole () : AvailabilityReplicaRole

属性值

类型:Microsoft.SqlServer.Management.Smo.AvailabilityReplicaRole
The role of the availability replica.

请参阅

参考

DatabaseReplicaState 类

Microsoft.SqlServer.Management.Smo 命名空间