Share via


ExceptionAsHResultMarshaller<T> Clase

Definición

Serializa un objeto de excepción en el valor de su HResult convertido en 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)

Parámetros de tipo

T

Tipo no administrado al que se va a convertir HResult.

Herencia
ExceptionAsHResultMarshaller<T>
Atributos

Comentarios

El generador de origen COM usa este tipo para habilitar la serialización de excepciones en el HResult de la excepción.

Métodos

ConvertToUnmanaged(Exception)

Serializa un objeto de excepción en el valor de su HResult convertido en T.

Se aplica a