Freigeben über


ExceptionAsDefaultMarshaller<T> Klasse

Definition

Konvertiert die Ausnahme in den Standardwert des angegebenen nicht verwalteten Typs.

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)

Typparameter

T

Der nicht verwaltete Typ.

Vererbung
ExceptionAsDefaultMarshaller<T>
Attribute

Methoden

ConvertToUnmanaged(Exception)

Konvertiert die angegebene Ausnahme in den Standardwert des nicht verwalteten Typs.

Gilt für: