ExceptionAsHResultMarshaller<T> Klas

Definitie

Marshals een uitzonderingsobject naar de waarde van het HResult object dat is geconverteerd naar 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)

Type parameters

T

Het niet-beheerde type om het HResult te converteren naar.

Overname
ExceptionAsHResultMarshaller<T>
Kenmerken

Opmerkingen

Dit type wordt gebruikt door de COM-brongenerator om marshalluitzonderingen voor de HResult van de uitzondering mogelijk te maken.

Methoden

Name Description
ConvertToUnmanaged(Exception)

Marshals een uitzonderingsobject naar de waarde van het HResult object dat is geconverteerd naar T.

Van toepassing op