ExceptionAsHResultMarshaller<T> Classe

Definizione

Effettua il marshalling di un oggetto eccezione al valore del relativo HResult oggetto convertito in 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)

Parametri di tipo

T

Tipo non gestito in cui convertire HResult.

Ereditarietà
ExceptionAsHResultMarshaller<T>
Attributi

Commenti

Questo tipo viene usato dal generatore di origine COM per abilitare le eccezioni di marshalling al valore HResult dell'eccezione.

Metodi

ConvertToUnmanaged(Exception)

Effettua il marshalling di un oggetto eccezione al valore del relativo HResult oggetto convertito in T.

Si applica a