ComWrappers.RegisterForTrackerSupport(ComWrappers) 方法

定義

註冊 ComWrappers 執行個體,作為參考追蹤器支援的全域執行個體。

public:
 static void RegisterForTrackerSupport(System::Runtime::InteropServices::ComWrappers ^ instance);
public static void RegisterForTrackerSupport (System.Runtime.InteropServices.ComWrappers instance);
static member RegisterForTrackerSupport : System.Runtime.InteropServices.ComWrappers -> unit
Public Shared Sub RegisterForTrackerSupport (instance As ComWrappers)

參數

instance
ComWrappers

要註冊的執行個體

例外狀況

此方法已多次呼叫。

備註

此函式只能呼叫一次。 對這個函式的後續呼叫會導致 InvalidOperationException 擲回 。 可以使用這個全域實例的案例:* 透過 TrackerSupportTrackerObject 旗標進行對象追蹤。

適用於