語言

JniRuntime.JniValueManager.GetValue 方法

定義

多載

名稱 Description
GetValue(JniObjectReference, JniObjectReferenceOptions, Type)

透過查找鉤子查詢或轉換管理值。

GetValue<T>(IntPtr)

查找或轉換帶有 Copy 傳輸選項的原始 JNI 控制點。

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

為轉換實作所提供的 JNI 參考資料。

options
JniObjectReferenceOptions

轉交給轉換實作的參考轉移選項。

targetType
Type

可選的受管理目標類型。

傳回

由查找實作產生的現有或轉換後的值。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

GetValue<T>(IntPtr)

查找或轉換帶有 Copy 傳輸選項的原始 JNI 控制點。

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

類型參數

T

受管理的結果類型。

參數

handle
IntPtr

nativeint

借用的 JNI 帳號可以查找,而不使用參考資料。

傳回

T

由查找實作產生的現有或轉換後的值。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

為轉換實作所提供的 JNI 參考資料。

options
JniObjectReferenceOptions

轉交給轉換實作的參考轉移選項。

targetType
Type

可選的受管理目標類型。

傳回

T

由查找實作產生的現有或轉換後的值。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於