ExportProvider.TrackDisposableValue(IDisposable, String) 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.
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.