Aracılığıyla paylaş


UniqueComInterfaceMarshaller<T> Sınıf

Tanım

Önemli

Bu API, CLS uyumlu değildir.

Yalnızca benzersiz yerel nesne sarmalayıcıları (RCW) oluşturan bir StrategyBasedComWrappers örneği kullanarak COM arabirimlerini sıralar.

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)

Tür Parametreleri

T

COM arabirim türünü temsil eden yönetilen tür

Devralma
UniqueComInterfaceMarshaller<T>
Öznitelikler

Açıklamalar

Bu marshaller her zaman ve UniqueInstance bayraklarını öğesine GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)geçirirUnwrap.

Yöntemler

ConvertToManaged(Void*)

COM arabirim işaretçisini yönetilen bir nesneye dönüştürür.

ConvertToUnmanaged(T)

tarafından Ttemsil edilen COM arabirimi için yönetilen nesneyi COM arabirim işaretçisine dönüştürür.

Free(Void*)

COM arabirim işaretçisine bir başvuru yayınlar.

Şunlara uygulanır