ComInterfaceMarshaller<T> 클래스

정의

Important

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

인스턴스를 사용하여 COM 인터페이스를 마샬링합니다 StrategyBasedComWrappers .

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)

형식 매개 변수

T

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

상속
ComInterfaceMarshaller<T>
특성

설명

이 마샬러는 항상 플래그GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)Unwrap 전달합니다.

메서드

Name Description
ConvertToManaged(Void*)

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

ConvertToUnmanaged(T)

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

Free(Void*)

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

적용 대상