ExceptionAsHResultMarshaller<T> Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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 |