AvailabilityGroupListenerCollection.Add Method
Adds an AvailabilityGroupListener object to the availability group listener collection.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Add ( _
AvailabilityGroupListener As AvailabilityGroupListener _
)
'Usage
Dim instance As AvailabilityGroupListenerCollection
Dim AvailabilityGroupListener As AvailabilityGroupListener
instance.Add(AvailabilityGroupListener)
public void Add(
AvailabilityGroupListener AvailabilityGroupListener
)
public:
void Add(
AvailabilityGroupListener^ AvailabilityGroupListener
)
member Add :
AvailabilityGroupListener:AvailabilityGroupListener -> unit
public function Add(
AvailabilityGroupListener : AvailabilityGroupListener
)
Parameters
- AvailabilityGroupListener
Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroupListener
The availability group listener to add.