AvailabilityGroup.Parent Property

Gets or sets the parent of the availability group.

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

Syntax

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

value = instance.Parent

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

Property Value

Type: Microsoft.SqlServer.Management.Smo.Server
The parent of the availability group.

See Also

Reference

AvailabilityGroup Class

Microsoft.SqlServer.Management.Smo Namespace