ComWrappers.RegisterForTrackerSupport(ComWrappers) Method

Definition

Registers a ComWrappers instance to be used as the global instance for reference tracker support.

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)

Parameters

instance
ComWrappers

The instance to register.

Exceptions

The method was called more than once.

Remarks

This function can only be called a single time. Subsequent calls to this function will result in a InvalidOperationException being thrown. Scenarios where this global instance may be used are: * Object tracking via the TrackerSupport and TrackerObject flags.

Applies to