共用方式為


JniRuntime.JniValueManager.GetValue 方法

定義

多載

GetValue(JniObjectReference, JniObjectReferenceOptions, Type)
GetValue<T>(IntPtr)
GetValue<T>(JniObjectReference, JniObjectReferenceOptions, Type)

GetValue(JniObjectReference, JniObjectReferenceOptions, Type)

public object? GetValue (ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
member this.GetValue : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> obj

參數

reference
JniObjectReference
targetType
Type

傳回

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

GetValue<T>(IntPtr)

public T GetValue<T> (IntPtr handle);
member this.GetValue : nativeint -> 'T

類型參數

T

參數

handle
IntPtr

nativeint

傳回

T

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

GetValue<T>(JniObjectReference, JniObjectReferenceOptions, Type)

public T GetValue<T> (ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
member this.GetValue : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> 'T

類型參數

T

參數

reference
JniObjectReference
targetType
Type

傳回

T

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於