ExceptionAsHResultMarshaller<T> Classe

Definição

Marshals uma exceção objeta ao valor de sua HResult convertida em 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 Genérico

T

O tipo não gerido para converter o HResult.

Herança
ExceptionAsHResultMarshaller<T>
Atributos

Observações

Este tipo é utilizado pelo gerador de fonte COM para permitir o marshalling de exceções ao HResult da exceção.

Métodos

Name Description
ConvertToUnmanaged(Exception)

Marshals uma exceção objeta ao valor de sua HResult convertida em T.

Aplica-se a