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.