Share via


UniqueComInterfaceMarshaller<T> Classe

Definizione

Importante

Questa API non è conforme a CLS.

Effettua il marshalling delle interfacce COM usando un'istanza strategyBasedComWrappers che crea solo wrapper di oggetti nativi univoci (RCW).

generic <typename T>
public ref class UniqueComInterfaceMarshaller 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.UniqueComInterfaceMarshaller<>))]
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static class UniqueComInterfaceMarshaller<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.UniqueComInterfaceMarshaller<>))>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type UniqueComInterfaceMarshaller<'T> = class
Public Class UniqueComInterfaceMarshaller(Of T)

Parametri di tipo

T

Tipo gestito che rappresenta un tipo di interfaccia COM

Ereditarietà
UniqueComInterfaceMarshaller<T>
Attributi

Commenti

Questo marshaller passa sempre i Unwrap flag e UniqueInstance a GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags).

Metodi

ConvertToManaged(Void*)

Converte un puntatore all'interfaccia COM in un oggetto gestito.

ConvertToUnmanaged(T)

Converte un oggetto gestito in un puntatore di interfaccia COM per l'interfaccia COM rappresentata da T.

Free(Void*)

Rilascia un riferimento al puntatore all'interfaccia COM.

Si applica a