共用方式為


DatabaseReplicaState.Parent 屬性

Gets the AvailabilityGroup object that is the parent of the DatabaseReplicaState object.

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

語法

'宣告
<SfcObjectAttribute(SfcObjectRelationship.ParentObject)> _
Public ReadOnly Property Parent As AvailabilityGroup 
    Get
'用途
Dim instance As DatabaseReplicaState 
Dim value As AvailabilityGroup 

value = instance.Parent
[SfcObjectAttribute(SfcObjectRelationship.ParentObject)]
public AvailabilityGroup Parent { get; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject)]
public:
property AvailabilityGroup^ Parent {
    AvailabilityGroup^ get ();
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject)>]
member Parent : AvailabilityGroup
function get Parent () : AvailabilityGroup

屬性值

型別:Microsoft.SqlServer.Management.Smo.AvailabilityGroup
The AvailabilityGroup object that is the parent of the DatabaseReplicaState object.

請參閱

參考

DatabaseReplicaState 類別

Microsoft.SqlServer.Management.Smo 命名空間