ExceptionAsHResultMarshaller<T> Класс

Определение

Маршалирует объект исключения в значение его HResult преобразования в 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)

Параметры типа

T

Неуправляемый тип, в который преобразуется объект HResult.

Наследование
ExceptionAsHResultMarshaller<T>
Атрибуты

Комментарии

Этот тип используется генератором источника COM для включения исключений маршалинга в HResult исключения.

Методы

ConvertToUnmanaged(Exception)

Маршалирует объект исключения в значение его HResult преобразования в T.

Применяется к