AvailabilityDatabase.Parent Property

Gets the specified AvailabilityGroup object.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcObjectAttribute(SfcObjectRelationship.ParentObject)> _
Public Property Parent As AvailabilityGroup 
    Get 
    Set
'Usage
Dim instance As AvailabilityDatabase 
Dim value As AvailabilityGroup 

value = instance.Parent

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

Property Value

Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroup
The availability group.

See Also

Reference

AvailabilityDatabase Class

Microsoft.SqlServer.Management.Smo Namespace