ConnectionFailedWebTestException 생성자 (SerializationInfo, StreamingContext)

원격 시나리오에 사용하기 위해 ConnectionFailedWebTestException 클래스의 새 인스턴스를 serialize된 데이터로 초기화합니다.

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

구문

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

매개 변수

예외

예외 조건
ArgumentNullException

info 매개 변수가 nullNull 참조(Visual Basic의 경우 Nothing)인 경우

SerializationException

클래스 이름이 nullNull 참조(Visual Basic의 경우 Nothing)이거나 HResult가 0인 경우

설명

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

.NET Framework 보안

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

참고 항목

참조

ConnectionFailedWebTestException 클래스

ConnectionFailedWebTestException 오버로드

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

SerializationInfo

StreamingContext

ArgumentNullException

SerializationException

HResult