다음을 통해 공유


ItemById 메서드

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

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
Public Function ItemById ( _
    id As Integer _
) As Alert
‘사용 방법
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

매개 변수

반환 값

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

주의

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.