ComInterfaceMarshaller<T> Klas

Definitie

Belangrijk

Deze API is niet CLS-conform.

Marshals een COM-interface met behulp van een StrategyBasedComWrappers exemplaar.

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)

Type parameters

T

Het beheerde type dat een COM-interfacetype vertegenwoordigt

Overname
ComInterfaceMarshaller<T>
Kenmerken

Opmerkingen

Deze marshaller geeft altijd de Unwrap vlag door aan GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).

Methoden

Name Description
ConvertToManaged(Void*)

Converteert een COM-interfacepointer naar een beheerd object.

ConvertToUnmanaged(T)

Converteert een beheerd object naar een COM-interfacepointer voor de COM-interface die wordt vertegenwoordigd door T.

Free(Void*)

Hiermee wordt een verwijzing naar de COM-interfacepointer uitgebracht.

Van toepassing op