ExceptionAsDefaultMarshaller<T> 類別

定義

將例外狀況轉換為指定之 Unmanaged 類型的預設值。

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

Unmanaged 類型。

繼承
ExceptionAsDefaultMarshaller<T>
屬性

方法

ConvertToUnmanaged(Exception)

將指定的例外狀況轉換為 Unmanaged 類型的預設值。

適用於