ComInterfaceMarshaller<T> Klasa

Definicja

Ważne

Ten interfejs API nie jest zgodny ze specyfikacją CLS.

Przeprowadzanie marshalingu interfejsu COM przy użyciu StrategyBasedComWrappers wystąpienia.

generic <typename T>
public ref class ComInterfaceMarshaller abstract sealed
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<>))]
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static class ComInterfaceMarshaller<T>
[<System.CLSCompliant(false)>]
[<System.Runtime.InteropServices.Marshalling.CustomMarshaller(typeof(System.Runtime.InteropServices.Marshalling.CustomMarshallerAttribute+GenericPlaceholder), System.Runtime.InteropServices.Marshalling.MarshalMode.Default, typeof(System.Runtime.InteropServices.Marshalling.ComInterfaceMarshaller<>))>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type ComInterfaceMarshaller<'T> = class
Public Class ComInterfaceMarshaller(Of T)

Parametry typu

T

Typ zarządzany reprezentujący typ interfejsu COM

Dziedziczenie
ComInterfaceMarshaller<T>
Atrybuty

Uwagi

Ten marshaller zawsze przekazuje flagę Unwrap do .GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)

Metody

ConvertToManaged(Void*)

Konwertuje wskaźnik interfejsu COM na obiekt zarządzany.

ConvertToUnmanaged(T)

Konwertuje obiekt zarządzany na wskaźnik interfejsu COM dla interfejsu COM reprezentowanego przez T.

Free(Void*)

Zwalnia odwołanie do wskaźnika interfejsu COM.

Dotyczy