語言

ExceptionAsHResultMarshaller<T> 類別

定義

Marshal 會對其 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 進行編組。

方法

名稱 Description
ConvertToUnmanaged(Exception)

Marshal 會對其 HResult 轉換為 T的值進行 物體化。

適用於