ExceptionAsHResultMarshaller<T> Klasse

Definition

Marshals an exception object to the value of its HResult converted to 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)

Typparameter

T

Der nicht verwaltete Typ, in den das HResult konvertiert werden soll.

Vererbung
ExceptionAsHResultMarshaller<T>
Attribute

Hinweise

Dieser Typ wird vom COM-Quellgenerator verwendet, um Marshalling-Ausnahmen für das HResult der Ausnahme zu ermöglichen.

Methoden

Name Beschreibung
ConvertToUnmanaged(Exception)

Marshals an exception object to the value of its HResult converted to T.

Gilt für: