Szerkesztés

Megosztás a következőn keresztül:


ExceptionAsHResultMarshaller<T> Class

Definition

Marshals an exception object to the value of its HResult converted to 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)

Type Parameters

T

The unmanaged type to convert the HResult to.

Inheritance
ExceptionAsHResultMarshaller<T>
Attributes

Remarks

This type is used by the COM source generator to enable marshalling exceptions to the HResult of the exception.

Methods

ConvertToUnmanaged(Exception)

Marshals an exception object to the value of its HResult converted to T.

Applies to