Właściwość AlertCategoryCollection.Item (Int32)
Pobiera AlertCategory obiektu kolekcja według numeru indeksu.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo.Agent
Zestaw: Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)
Składnia
'Deklaracja
Public ReadOnly Default Property Item ( _
index As Integer _
) As AlertCategory
Get
'Użycie
Dim instance As AlertCategoryCollection
Dim index As Integer
Dim value As AlertCategory
value = instance(index)
public AlertCategory this[
int index
] { get; }
public:
property AlertCategory^ default[int index] {
AlertCategory^ get (int index);
}
member Item : AlertCategory
Język JScript obsługuje używanie indeksowanych właściwości, ale nie obsługuje deklarowania nowych.
Parametry
- index
Typ: System.Int32
Int32 Wartość, która określa położenie AlertCategory obiekt w AlertCategoryCollection kolekcja.
Wartość właściwości
Typ: Microsoft.SqlServer.Management.Smo.Agent.AlertCategory
AlertCategory Wartość obiektu, który reprezentuje kategorię alert.