AvailabilityGroupListener Constructor (AvailabilityGroup, String)

Initializes a new instance of the AvailabilityGroupListener class using the specified availability group and name.

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

Syntax

'Declaration
Public Sub New ( _
    availabilityGroup As AvailabilityGroup, _
    name As String _
)
'Usage
Dim availabilityGroup As AvailabilityGroup 
Dim name As String 

Dim instance As New AvailabilityGroupListener(availabilityGroup, _
    name)
public AvailabilityGroupListener(
    AvailabilityGroup availabilityGroup,
    string name
)
public:
AvailabilityGroupListener(
    AvailabilityGroup^ availabilityGroup, 
    String^ name
)
new : 
        availabilityGroup:AvailabilityGroup * 
        name:string -> AvailabilityGroupListener
public function AvailabilityGroupListener(
    availabilityGroup : AvailabilityGroup, 
    name : String
)

Parameters

See Also

Reference

AvailabilityGroupListener Class

AvailabilityGroupListener Overload

Microsoft.SqlServer.Management.Smo Namespace