Compartilhar via


Método ItemById

Extracts a member from the AlertCollection collection using a system-defined, unique identifier.

Namespace:  Microsoft.SqlServer.Management.Smo.Agent
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Function ItemById ( _
    id As Integer _
) As Alert
'Uso
Dim instance As AlertCollection
Dim id As Integer
Dim returnValue As Alert

returnValue = instance.ItemById(id)
public Alert ItemById(
    int id
)
public:
Alert^ ItemById(
    int id
)
member ItemById : 
        id:int -> Alert 
public function ItemById(
    id : int
) : Alert

Parâmetros

Valor de retorno

Tipo: Microsoft.SqlServer.Management.Smo.Agent. . :: . .Alert
An Alert object that has the specified ID value.

Comentários

Qualquer membro público estático (Compartilhado no Microsoft Visual Basic) desse tipo é seguro para operações multi-threaded. Não há garantia de que qualquer membro de instância seja seguro para threads.