Freigeben über


AvailabilityReplica.Role-Eigenschaft

Gets the replica role object associated with this instance.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property Role As AvailabilityReplicaRole 
    Get
'Usage
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

Eigenschaftswert

Typ: Microsoft.SqlServer.Management.Smo.AvailabilityReplicaRole
The role.

Siehe auch

Verweis

AvailabilityReplica Klasse

Microsoft.SqlServer.Management.Smo-Namespace