IMemoryLeakTrackerService.TrackObject<T>(T, String, ILivingObjectDiagnostics<T>) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Suivre le cycle de vie des objets en mémoire. Est un thread libre. Appelé dans le code du produit. Ne lève pas d’exception.
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))
Paramètres de type
- T
Paramètres
- objectToTrack
- T
Type d’objet basé sur un modèle générique à suivre.
- identifier
- String
Identificateur unique de l’objet suivi
- objectDiagnosticsHelper
- ILivingObjectDiagnostics<T>
Objet statique implémentant ILivingObjectDiagnostics<T>/>