Partilhar via


IMemoryLeakTrackerService.TrackObject<T> Method

Definition

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

Applies to