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.

请参阅

参考

DatabaseReplicaState 类

Microsoft.SqlServer.Management.Smo 命名空间