Język

ExceptionAsHResultMarshaller<T> Klasa

Definicja

Marshaluje obiekt wyjątku do wartości przekonwertowanej HResult na 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)

Parametry typu

T

Niezarządzany typ, na który ma być konwertowany element HResult.

Dziedziczenie
ExceptionAsHResultMarshaller<T>
Atrybuty

Uwagi

Ten typ jest używany przez generator źródła COM, aby umożliwić marshalling wyjątków do HResult wyjątku.

Metody

Nazwa Opis
ConvertToUnmanaged(Exception)

Marshaluje obiekt wyjątku do wartości przekonwertowanej HResult na T.

Dotyczy