AvailabilityReplica.Role 屬性
Gets the replica role object associated with this instance.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property Role As AvailabilityReplicaRole
Get
'用途
Dim instance As AvailabilityReplica
Dim value As AvailabilityReplicaRole
value = instance.Role
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public AvailabilityReplicaRole Role { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property AvailabilityReplicaRole Role {
AvailabilityReplicaRole get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member Role : AvailabilityReplicaRole
function get Role () : AvailabilityReplicaRole
屬性值
型別:Microsoft.SqlServer.Management.Smo.AvailabilityReplicaRole
The role.