TargetServerCollection.ItemById 메서드

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

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

구문

‘선언
Public Function ItemById ( _
    id As Integer _
) As TargetServer
‘사용 방법
Dim instance As TargetServerCollection 
Dim id As Integer 
Dim returnValue As TargetServer 

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

매개 변수

반환 값

유형: Microsoft.SqlServer.Management.Smo.Agent.TargetServer
A TargetServer object that has the specified ID value.

주의

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

컬렉션 사용

참고 항목

참조

TargetServerCollection 클래스

Microsoft.SqlServer.Management.Smo.Agent 네임스페이스