IMemoryLeakTrackerService.TrackObject<T> 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.
Track object lifecycle in memory. Is free threaded. Called in product code. Does not throw.
public:
generic <typename T>
where T : class void TrackObject(T objectToTrack, System::String ^ identifier, Microsoft::VisualStudio::Utilities::ILivingObjectDiagnostics<T> ^ objectDiagnosticsHelper);
public void TrackObject<T> (T objectToTrack, string identifier, Microsoft.VisualStudio.Utilities.ILivingObjectDiagnostics<T> objectDiagnosticsHelper) where T : class;
abstract member TrackObject : 'T * string * Microsoft.VisualStudio.Utilities.ILivingObjectDiagnostics<'T (requires 'T : null)> -> unit (requires 'T : null)
Public Sub TrackObject(Of T As Class) (objectToTrack As T, identifier As String, objectDiagnosticsHelper As ILivingObjectDiagnostics(Of T))
Type Parameters
- T
Parameters
- objectToTrack
- T
Generic templated object type to track.
- identifier
- String
Unique identifier for the object being tracked
- objectDiagnosticsHelper
- ILivingObjectDiagnostics<T>
A static object implementing to help clients of the service to get diagnostics support for the object being tracked/>