ExceptionAsHResultMarshaller<T> Classe

Definição

Realiza marshaling de um objeto de exceção para o valor de seu HResult convertido 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

T

O tipo não gerenciado para o qual converter o HResult.

Herança
ExceptionAsHResultMarshaller<T>
Atributos

Comentários

Esse tipo é usado pelo gerador de origem COM para habilitar exceções de marshaling para o HResult da exceção.

Métodos

ConvertToUnmanaged(Exception)

Realiza marshaling de um objeto de exceção para o valor de seu HResult convertido em T.

Aplica-se a