ExceptionAsHResultMarshaller<T> クラス

定義

例外オブジェクトを、 に変換された の 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 に対する例外のマーシャリングを有効にします。

メソッド

ConvertToUnmanaged(Exception)

例外オブジェクトを、 に変換された の HResult 値に Tマーシャリングします。

適用対象