Share via


ExportProvider.TrackDisposableValue(IDisposable, String) Method

Definition

Adds a value to be disposed of when this or a parent ExportProvider is disposed of.

protected void TrackDisposableValue (IDisposable instantiatedPart, string sharingBoundary);
member this.TrackDisposableValue : IDisposable * string -> unit
Protected Sub TrackDisposableValue (instantiatedPart As IDisposable, sharingBoundary As String)

Parameters

instantiatedPart
IDisposable

The part to be disposed.

sharingBoundary
String

The sharing boundary associated with the part. May be null for non-shared parts, or the empty string for the default sharing scope.

Applies to