共用方式為


DatabaseReplicaState.AvailabilityDateabaseId 屬性

Gets the identifier of the database within the availability group.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property AvailabilityDateabaseId As Guid 
    Get
'用途
Dim instance As DatabaseReplicaState 
Dim value As Guid 

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

屬性值

型別:System.Guid
The identifier of the database within the availability group.

請參閱

參考

DatabaseReplicaState 類別

Microsoft.SqlServer.Management.Smo 命名空間