Language

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の値にマーシャリングします。

適用対象