ComWrappers.RegisterForMarshalling(ComWrappers) 메서드

정의

런타임에서 마샬링을 위한 전역 인스턴스로 사용할 ComWrappers 인스턴스를 등록합니다.

public:
 static void RegisterForMarshalling(System::Runtime::InteropServices::ComWrappers ^ instance);
public static void RegisterForMarshalling (System.Runtime.InteropServices.ComWrappers instance);
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static void RegisterForMarshalling (System.Runtime.InteropServices.ComWrappers instance);
static member RegisterForMarshalling : System.Runtime.InteropServices.ComWrappers -> unit
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
static member RegisterForMarshalling : System.Runtime.InteropServices.ComWrappers -> unit
Public Shared Sub RegisterForMarshalling (instance As ComWrappers)

매개 변수

instance
ComWrappers

등록할 인스턴스입니다.

특성

예외

메서드가 두 번 이상 호출되었습니다.

설명

이 함수는 한 번만 호출할 수 있습니다. 이 함수에 대한 후속 호출은 InvalidOperationException throw됩니다. 이 전역 instance 사용할 수 있는 시나리오는 * COM 관련 마샬링 API 사용 * COM 관련 형식의 P/호출 * COM 활성화입니다.

적용 대상