다음을 통해 공유


ContextMarshalException 클래스

참고: 이 클래스는 이제 사용되지 않습니다.

컨텍스트 경계를 넘어 개체를 마샬링하지 못할 경우 throw되는 예외입니다.

네임스페이스: System
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
<SerializableAttribute> _
<ObsoleteAttribute("ContextMarshalException is obsolete.")> _
<ComVisibleAttribute(True)> _
Public Class ContextMarshalException
    Inherits SystemException
‘사용 방법
Dim instance As ContextMarshalException
[SerializableAttribute] 
[ObsoleteAttribute("ContextMarshalException is obsolete.")] 
[ComVisibleAttribute(true)] 
public class ContextMarshalException : SystemException
[SerializableAttribute] 
[ObsoleteAttribute(L"ContextMarshalException is obsolete.")] 
[ComVisibleAttribute(true)] 
public ref class ContextMarshalException : public SystemException
/** @attribute SerializableAttribute() */ 
/** @attribute ObsoleteAttribute("ContextMarshalException is obsolete.") */ 
/** @attribute ComVisibleAttribute(true) */ 
public class ContextMarshalException extends SystemException
SerializableAttribute 
ObsoleteAttribute("ContextMarshalException is obsolete.") 
ComVisibleAttribute(true) 
public class ContextMarshalException extends SystemException

설명

개체는 값이나 참조로 마샬링할 수 있습니다. 컨텍스트 경계를 넘어 마샬링할 수 없는 형식을 전달하려고 하면 ContextMarshalException이 발생합니다.

ContextMarshalException은 0x80131504L 값을 가지는 HRESULT COR_E_CONTEXTMARSHAL을 사용합니다.

ContextMarshalException은 참조 일치를 지원하는 기본 Equals 구현을 사용합니다.

ContextMarshalException 인스턴스의 초기 속성 값 목록에 대한 자세한 내용은 ContextMarshalException 생성자를 참조하십시오.

상속 계층 구조

System.Object
   System.Exception
     System.SystemException
      System.ContextMarshalException

스레드로부터의 안전성

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

1.0, 1.1에서 지원
2.0에서 사용되지 않음(컴파일러 경고)

참고 항목

참조

ContextMarshalException 멤버
System 네임스페이스
Exception

기타 리소스

예외 처리 및 Throw