DatabaseReplicaState.AvailabilityGroupId 屬性
Gets the identifier of the availability group to which the database belongs.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property AvailabilityGroupId As Guid
Get
'用途
Dim instance As DatabaseReplicaState
Dim value As Guid
value = instance.AvailabilityGroupId
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public Guid AvailabilityGroupId { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property Guid AvailabilityGroupId {
Guid get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member AvailabilityGroupId : Guid
function get AvailabilityGroupId () : Guid
屬性值
型別:System.Guid
The identifier of the availability group to which the database belongs.