다음을 통해 공유


WebTestException 생성자 (SerializationInfo, StreamingContext)

원격 시나리오에 대한 WebTestException 클래스의 새 인스턴스를 초기화합니다.

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

구문

‘선언
Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
protected WebTestException(
    SerializationInfo info,
    StreamingContext context
)
protected:
WebTestException(
    SerializationInfo^ info, 
    StreamingContext context
)
new : 
        info:SerializationInfo * 
        context:StreamingContext -> WebTestException
protected function WebTestException(
    info : SerializationInfo, 
    context : StreamingContext
)

매개 변수

  • info
    형식: SerializationInfo

    throw되는 예외에 대한 serialize된 개체 데이터를 보유합니다.

  • context
    형식: StreamingContext

    소스나 대상에 대한 컨텍스트 정보를 포함합니다.

예외

예외 조건
ArgumentNullException

info가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

설명

이 생성자는 deserialization 상황에 사용됩니다. 이는 서버에서 클라이언트로 예외가 전파되는 경우 원격 시나리오에 필요합니다.

.NET Framework 보안

참고 항목

참조

WebTestException 클래스

WebTestException 오버로드

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