다음을 통해 공유


WebTestContext.AgentId 속성

업데이트: 2007년 11월

현재 에이전트에 대한 인덱스를 가져옵니다. 이 인덱스는 0부터 시작합니다.

네임스페이스:  Microsoft.VisualStudio.TestTools.WebTesting
어셈블리:  Microsoft.VisualStudio.QualityTools.WebTestFramework(Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

구문

Public ReadOnly Property AgentId As Integer

Dim instance As WebTestContext
Dim value As Integer

value = instance.AgentId
public int AgentId { get; }
public:
property int AgentId {
    int get ();
}
public function get AgentId () : int

속성 값

형식: System.Int32

현재 에이전트의 인덱스 값입니다.

권한

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

WebTestContext 클래스

WebTestContext 멤버

Microsoft.VisualStudio.TestTools.WebTesting 네임스페이스

기타 리소스

컨트롤러, 에이전트 및 Rig