Condividi tramite


IJavaPeerable.Disposed Method

Definition

Called when the instance has been disposed.

public void Disposed ();
abstract member Disposed : unit -> unit

Remarks

The Disposed method is invoked after the Dispose() method has been invoked on the instance. The PeerReference property is still valid when Disposed is invoked.

[JniTypeSignature ("my/Example")]
partial class ExampleBinding : IJavaPeerable {

	public void Dispose ()
	{
        JniEnvironment.Runtime.ValueManager.Dispose (this);
	}

	protected virtual void Dispose (bool disposing)
	{
	}

	void IJavaPeerable.Disposed ()
	{
	    Dispose (disposing: true);
	}
}

Applies to