ComWrappers.RegisterForTrackerSupport(ComWrappers) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.