Compartilhar via


Propriedade Item (String)

Gets a JobCategory 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 JobCategory
    Get
'Uso
Dim instance As JobCategoryCollection
Dim name As String
Dim value As JobCategory

value = instance(name)
public JobCategory this[
    string name
] { get; }
public:
property JobCategory^ default[String^ name] {
    JobCategory^ get (String^ name);
}
member Item : JobCategory
JScript dá suporte ao uso de propriedades indexadas, mas não à declaração de propriedades novas.

Parâmetros

Valor da propriedade

Tipo: Microsoft.SqlServer.Management.Smo.Agent. . :: . .JobCategory
A JobCategory object value that represents the alert category.