IJavaPeerable.UnregisterFromRuntime 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.
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.
public void UnregisterFromRuntime ();
abstract member UnregisterFromRuntime : unit -> unit
Remarks
Call this method when you would like to prevent this instance from being returned by future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations.
[JniTypeSignature ("my/Example")]
partial class ExampleBinding : IJavaPeerable {
public void UnregisterFromRuntime ()
{
JniEnvironment.Runtime.ValueManager.UnRegisterObject (this);
}
}