ExceptionAsHResultMarshaller<T> 클래스

정의

예외 개체를 로 변환된 값 HResult 으로 마샬링합니다 T.

generic <typename T>
 where T : value classpublic ref class ExceptionAsHResultMarshaller abstract sealed
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<>))]
public static class ExceptionAsHResultMarshaller<T> where T : struct
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsHResultMarshaller<>))>]
type ExceptionAsHResultMarshaller<'T (requires 'T : struct)> = class
Public Class ExceptionAsHResultMarshaller(Of T)

형식 매개 변수

T

HResult를 변환할 관리되지 않는 형식입니다.

상속
ExceptionAsHResultMarshaller<T>
특성

설명

이 형식은 COM 원본 생성기에서 예외의 HResult에 대한 마샬링 예외를 사용하도록 설정하는 데 사용됩니다.

메서드

ConvertToUnmanaged(Exception)

예외 개체를 로 변환된 값 HResult 으로 마샬링합니다 T.

적용 대상