Share via


AvailabilityGroupListenerCollection.Item Property (String)

Gets an AvailabilityGroupListener object in the collection by name.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As AvailabilityGroupListener 
    Get
'Usage
Dim instance As AvailabilityGroupListenerCollection 
Dim name As String 
Dim value As AvailabilityGroupListener 

value = instance(name)
public AvailabilityGroupListener this[
    string name
] { get; }
public:
property AvailabilityGroupListener^ default[String^ name] {
    AvailabilityGroupListener^ get (String^ name);
}
member Item : AvailabilityGroupListener
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroupListener
An AvailabilityGroupListener object.

See Also

Reference

AvailabilityGroupListenerCollection Class

Item Overload

Microsoft.SqlServer.Management.Smo Namespace