CreateAvailabilityGroupTask Class

Definition

Task to create an Availability Group

C#
public class CreateAvailabilityGroupTask : Microsoft.SqlServer.Management.HadrModel.HadrTask, Microsoft.SqlServer.Management.HadrModel.IScriptableTask
Inheritance
CreateAvailabilityGroupTask
Implements

Constructors

Fields

policy

ExecutionPolicy for retry or expire the process.

(Inherited from HadrTask)

Properties

IsCancelled

IsCancelled for derived class to check for long running tasks and termnate early

(Inherited from HadrTask)
Name

Task name

(Inherited from HadrTask)
ScriptingConnections

Connections to use for scripting

Methods

Perform(IExecutionPolicy, CancellationToken, ScenarioTaskHandler)

Execute task steps. If a delegate is passed, then the delegate is executed with a policy. Otherwise, the derived class logic is executed

(Inherited from HadrTask)
Perform(IExecutionPolicy)

Creates an availability group

Rollback(IExecutionPolicy, ScenarioTaskHandler)

Rollback task completed steps. If a delegate is passed, then the delegate is executed with a policy. Otherwise, the derived class logic is executed

(Inherited from HadrTask)
Rollback(IExecutionPolicy)

Rollback is not supported for this task

TaskUpdateEventHandler(Object, TaskEventArgs)

Tasks status event handler

(Inherited from HadrTask)
TaskWait(Int32)

For isCancelled Check

(Inherited from HadrTask)
UpdateStatus(TaskEventArgs)

Send tasks execution update event

(Inherited from HadrTask)

Events

TaskProgressEventHandler

Task progress event handler

(Inherited from HadrTask)

Applies to

Produkt Verzie
Microsoft.SqlServer.SqlManagementObjects 160.2004021.0