ExceptionAsDefaultMarshaller<T> Класс

Определение

Преобразует исключение в значение по умолчанию указанного неуправляемого типа.

generic <typename T>
 where T : value classpublic ref class ExceptionAsDefaultMarshaller abstract sealed
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsDefaultMarshaller<>))]
public static class ExceptionAsDefaultMarshaller<T> where T : struct
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Exception), System.Runtime.InteropServices.Marshalling.MarshalMode.UnmanagedToManagedOut, typeof(System.Runtime.InteropServices.Marshalling.ExceptionAsDefaultMarshaller<>))>]
type ExceptionAsDefaultMarshaller<'T (requires 'T : struct)> = class
Public Class ExceptionAsDefaultMarshaller(Of T)

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

T

Неуправляемый тип.

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

Методы

ConvertToUnmanaged(Exception)

Преобразует указанное исключение в значение по умолчанию неуправляемого типа.

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