AvailabilityGroup.AvailabilityGroupListeners Property
Gets or sets the collection of replicas participating in the availability group.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, _
GetType(AvailabilityGroupListener))> _
Public ReadOnly Property AvailabilityGroupListeners As AvailabilityGroupListenerCollection
Get
'Usage
Dim instance As AvailabilityGroup
Dim value As AvailabilityGroupListenerCollection
value = instance.AvailabilityGroupListeners
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(AvailabilityGroupListener))]
public AvailabilityGroupListenerCollection AvailabilityGroupListeners { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny,
typeof(AvailabilityGroupListener))]
public:
property AvailabilityGroupListenerCollection^ AvailabilityGroupListeners {
AvailabilityGroupListenerCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,
typeof(AvailabilityGroupListener))>]
member AvailabilityGroupListeners : AvailabilityGroupListenerCollection
function get AvailabilityGroupListeners () : AvailabilityGroupListenerCollection
Property Value
Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroupListenerCollection
The collection of replicas participating in the availability group.