IJavaPeerable.Finalized Method
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.
Called when the instance has been finalized.
public void Finalized ();
abstract member Finalized : unit -> unit
The Finalized
method is invoked after the finalizer has been invoked on the instance. The PeerReference property is NOT valid when Finalized
is invoked.
[JniTypeSignature ("my/Example")]
partial class ExampleBinding : IJavaPeerable {
~ExampleBinding ()
{
JniEnvironment.Runtime.ValueManager.TryCollectObject (this);
}
protected virtual void Dispose (bool disposing)
{
}
void IJavaPeerable.Finalized ()
{
Dispose (disposing: false);
}
}
Product | Versions |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |