AvailabilityGroupListenerCollection.Item Property (Int32)
Gets an AvailabilityGroupListener object in the collection by index number.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
index As Integer _
) As AvailabilityGroupListener
Get
'Usage
Dim instance As AvailabilityGroupListenerCollection
Dim index As Integer
Dim value As AvailabilityGroupListener
value = instance(index)
public AvailabilityGroupListener this[
int index
] { get; }
public:
property AvailabilityGroupListener^ default[int index] {
AvailabilityGroupListener^ get (int index);
}
member Item : AvailabilityGroupListener
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- index
Type: System.Int32
Specifies the position of the AvailabilityGroupListener object in the AvailabilityGroupListenerCollection collection.
Property Value
Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroupListener
An AvailabilityGroupListener object.