ComWrappers.GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags) 메서드

정의

현재 등록된 관리형 개체를 가져오거나 새 관리되는 개체를 만들어 등록합니다.

public:
 System::Object ^ GetOrCreateObjectForComInstance(IntPtr externalComObject, System::Runtime::InteropServices::CreateObjectFlags flags);
public object GetOrCreateObjectForComInstance (IntPtr externalComObject, System.Runtime.InteropServices.CreateObjectFlags flags);
member this.GetOrCreateObjectForComInstance : nativeint * System.Runtime.InteropServices.CreateObjectFlags -> obj
Public Function GetOrCreateObjectForComInstance (externalComObject As IntPtr, flags As CreateObjectFlags) As Object

매개 변수

externalComObject
IntPtr

nativeint

사용하기 위해 .NET 런타임으로 가져올 개체입니다.

flags
CreateObjectFlags

외부 개체를 설명하는 데 사용되는 플래그입니다.

반환

제공된 외부 COM 개체와 연결된 관리형 개체입니다.

설명

ComWrappers instance 사용하여 지정된 에 대해 관리되는 externalComObject 개체를 이전에 만든 경우 이전에 만든 개체가 반환됩니다. 그렇지 않은 경우 새 새 이 만들어집니다.

적용 대상