Share via


AvailabilityGroup.AutomatedBackupPreference Property

Gets or sets the collection of the automated backup preference for the availability group.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property AutomatedBackupPreference As AvailabilityGroupAutomatedBackupPreference 
    Get 
    Set
'Usage
Dim instance As AvailabilityGroup 
Dim value As AvailabilityGroupAutomatedBackupPreference 

value = instance.AutomatedBackupPreference

instance.AutomatedBackupPreference = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public AvailabilityGroupAutomatedBackupPreference AutomatedBackupPreference { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property AvailabilityGroupAutomatedBackupPreference AutomatedBackupPreference {
    AvailabilityGroupAutomatedBackupPreference get ();
    void set (AvailabilityGroupAutomatedBackupPreference value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member AutomatedBackupPreference : AvailabilityGroupAutomatedBackupPreference with get, set
function get AutomatedBackupPreference () : AvailabilityGroupAutomatedBackupPreference 
function set AutomatedBackupPreference (value : AvailabilityGroupAutomatedBackupPreference)

Property Value

Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroupAutomatedBackupPreference
The collection of the automated backup preference for the availability group.

See Also

Reference

AvailabilityGroup Class

Microsoft.SqlServer.Management.Smo Namespace