AvailabilityGroupCollection.Item Property (Int32)

Gets an AvailabilityGroup 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 AvailabilityGroup 
    Get
'Usage
Dim instance As AvailabilityGroupCollection 
Dim index As Integer 
Dim value As AvailabilityGroup 

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

Parameters

  • index
    Type: System.Int32
    The position of the availability group in the collection.

Property Value

Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroup
An availability group in the collection.

See Also

Reference

AvailabilityGroupCollection Class

Item Overload

Microsoft.SqlServer.Management.Smo Namespace