IJavaPeerable.UnregisterFromRuntime 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取消註冊此實例,讓執行時不會在未來 Java.Interop.JniRuntime+JniValueManager.PeekValue 的呼叫中回傳該實例。
public void UnregisterFromRuntime();
abstract member UnregisterFromRuntime : unit -> unit
備註
當你想防止這個實例被未來 Java.Interop.JniRuntime+JniValueManager.PeekValue 的召喚回傳時,可以呼叫這個方法。
<區塊子集=「無」類型=「覆寫」>
規定的實施範本如下:
[JniTypeSignature ("my/Example")]
partial class ExampleBinding : IJavaPeerable {
public void UnregisterFromRuntime ()
{
JniEnvironment.Runtime.ValueManager.UnRegisterObject (this);
}
}
</區塊>