ExceptionAsHResultMarshaller<T> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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 轉換為 |