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
형식: SerializationInfothrow되는 예외에 대한 serialize된 개체 데이터를 보유합니다.
context
형식: StreamingContext소스나 대상에 대한 컨텍스트 정보를 포함합니다.
예외
예외 | 조건 |
---|---|
ArgumentNullException | info가 nullNull 참조(Visual Basic의 경우 Nothing)입니다. |
설명
이 생성자는 deserialization 상황에 사용됩니다. 이는 서버에서 클라이언트로 예외가 전파되는 경우 원격 시나리오에 필요합니다.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.