JniRuntime.JniValueManager.GetValue 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| 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
- options
- JniObjectReferenceOptions
- targetType
- Type
傳回
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
GetValue<T>(IntPtr)
public T GetValue<T>(IntPtr handle);
member this.GetValue : nativeint -> 'T
類型參數
- T
參數
- handle
-
IntPtr
nativeint
傳回
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
- options
- JniObjectReferenceOptions
- targetType
- Type
傳回
T
備註
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。