Breyta

Deila með


ResourceSet.Dispose Method

Definition

Releases resources used by the current ResourceSet instance.

Overloads

Dispose()

Disposes of the resources (other than memory) used by the current instance of ResourceSet.

Dispose(Boolean)

Releases resources (other than memory) associated with the current instance, closing internal managed objects if requested.

Dispose()

Source:
ResourceSet.cs
Source:
ResourceSet.cs
Source:
ResourceSet.cs

Disposes of the resources (other than memory) used by the current instance of ResourceSet.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

Implements

Remarks

Call Dispose when you are finished using the ResourceSet. The Dispose method leaves the ResourceSet in an unusable state. After calling Dispose, you must release all references to the ResourceSet so the memory it was occupying can be reclaimed by garbage collection.

Note

The current method is the implementation of IDisposable.Dispose. This implementation calls Dispose (true).

Applies to

Dispose(Boolean)

Source:
ResourceSet.cs
Source:
ResourceSet.cs
Source:
ResourceSet.cs

Releases resources (other than memory) associated with the current instance, closing internal managed objects if requested.

protected:
 virtual void Dispose(bool disposing);
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override this.Dispose : bool -> unit
Protected Overridable Sub Dispose (disposing As Boolean)

Parameters

disposing
Boolean

Indicates whether the objects contained in the current instance should be explicitly closed.

Remarks

If the dispose parameter is true, the current method frees all the resources associated with it as well as with all objects associated with it. If dispose is false, the current method frees only the resources allocated to it, and ignores any objects associated with it.

Applies to