ExceptionAsHResultMarshaller<T> Třída

Definice

Zařadí objekt výjimky na hodnotu, která je HResult převedena na 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)

Parametry typu

T

Nespravovaný typ, který má převést HResult na.

Dědičnost
ExceptionAsHResultMarshaller<T>
Atributy

Poznámky

Tento typ je používán generátorem zdroje modelu COM k povolení zařazování výjimek HResult výjimky.

Metody

ConvertToUnmanaged(Exception)

Zařadí objekt výjimky na hodnotu, která je HResult převedena na T.

Platí pro