共用方式為


DatabaseReplicaState.ReplicaAvailabilityMode 屬性

Gets the availability mode of the availability replica.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ReplicaAvailabilityMode As AvailabilityReplicaAvailabilityMode 
    Get 
    Set
'用途
Dim instance As DatabaseReplicaState 
Dim value As AvailabilityReplicaAvailabilityMode 

value = instance.ReplicaAvailabilityMode

instance.ReplicaAvailabilityMode = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public AvailabilityReplicaAvailabilityMode ReplicaAvailabilityMode { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property AvailabilityReplicaAvailabilityMode ReplicaAvailabilityMode {
    AvailabilityReplicaAvailabilityMode get ();
    void set (AvailabilityReplicaAvailabilityMode value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ReplicaAvailabilityMode : AvailabilityReplicaAvailabilityMode with get, set
function get ReplicaAvailabilityMode () : AvailabilityReplicaAvailabilityMode 
function set ReplicaAvailabilityMode (value : AvailabilityReplicaAvailabilityMode)

屬性值

型別:Microsoft.SqlServer.Management.Smo.AvailabilityReplicaAvailabilityMode
The availability mode of the availability replica.

請參閱

參考

DatabaseReplicaState 類別

Microsoft.SqlServer.Management.Smo 命名空間