UniqueComInterfaceMarshaller<T> 클래스

정의

중요

이 API는 CLS 규격이 아닙니다.

고유한 네이티브 개체 래퍼(RCW)만 만드는 StrategyBasedComWrappers instance 사용하여 COM 인터페이스를 마샬링합니다.

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

COM 인터페이스 형식을 나타내는 관리되는 형식

상속
UniqueComInterfaceMarshaller<T>
특성

설명

이 마샬러는 항상 및 UniqueInstance 플래그를 UnwrapGetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)전달합니다.

메서드

ConvertToManaged(Void*)

COM 인터페이스 포인터를 관리되는 개체로 변환합니다.

ConvertToUnmanaged(T)

관리되는 개체를 로 표시되는 COM 인터페이스에 대한 COM 인터페이스 포인터로 T변환합니다.

Free(Void*)

COM 인터페이스 포인터에 대한 참조를 해제합니다.

적용 대상