Propriedade Item (String)
Gets an AlertCategory object in the collection by name.
Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)
Sintaxe
'Declaração
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 dá suporte ao uso de propriedades indexadas, mas não à declaração de propriedades novas.
Parâmetros
- name
Tipo: System. . :: . .String
A String value that specifies the name of the AlertCategory object in the AlertCategoryCollection collection.
Valor da propriedade
Tipo: Microsoft.SqlServer.Management.Smo.Agent. . :: . .AlertCategory
An AlertCategory object value that represents the alert category.