ExceptionAsDefaultMarshaller<T> Třída

Definice

Převede výjimku na výchozí hodnotu zadaného nespravovaného typu.

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)

Parametry typu

T

Nespravovaný typ.

Dědičnost
ExceptionAsDefaultMarshaller<T>
Atributy

Metody

ConvertToUnmanaged(Exception)

Převede zadanou výjimku na výchozí hodnotu nespravovaného typu.

Platí pro