Compartir a través de


Item Propiedad (String)

Gets an AlertCategory object in the collection by name.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Agent
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
Public ReadOnly Default Property Item ( _
    name As String _
) As AlertCategory
    Get
'Uso
Dim instance As AlertCategoryCollection
Dim name As String
Dim value As AlertCategory

value = instance(name)
public AlertCategory this[
    string name
] { get; }
public:
property AlertCategory^ default[String^ name] {
    AlertCategory^ get (String^ name);
}
member Item : AlertCategory
JScript admite el uso de propiedades indizadas, pero no la declaración de otras nuevas.

Parámetros

Valor de la propiedad

Tipo: Microsoft.SqlServer.Management.Smo.Agent. . :: . .AlertCategory
An AlertCategory object value that represents the alert category.

Ejemplos

Usar colecciones