Bagikan melalui


AlertCollection.ItemById Method

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

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

Syntax

'Declaration
Public Function ItemById ( _
    id As Integer _
) As Alert
'Usage
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

Parameters

Return Value

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

Remarks

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Examples

Using Collections

See Also

Reference

AlertCollection Class

Microsoft.SqlServer.Management.Smo.Agent Namespace