Language

JniRuntime.ReflectionJniValueManager.GetValueCore メソッド

定義

オーバーロード

Name 説明
GetValueCore(JniObjectReference, JniObjectReferenceOptions, Type)

コンバーターを選択する前に、互換性のある既存のマップされた値を再利用します。

GetValueCore<T>(JniObjectReference, JniObjectReferenceOptions, Type)

互換性のあるマップされた値を再利用するか、要求されたマネージド型に変換します。

GetValueCore(JniObjectReference, JniObjectReferenceOptions, Type)

コンバーターを選択する前に、互換性のある既存のマップされた値を再利用します。

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

パラメーター

reference
JniObjectReference

変換するソース JNI 参照。

options
JniObjectReferenceOptions

ソース参照転送オプション。

targetType
Type

省略可能なマネージド ターゲットの種類。 省略すると、既存のマップされた値を再利用できます。または、使用可能な場合はランタイム型を使用できます。

戻り値

再利用または変換された値。 nullできます。 ゼロ参照は nullを返します。

注釈

既存の値が再利用されるときにも、ソース破棄オプションが適用されます。

適用対象

GetValueCore<T>(JniObjectReference, JniObjectReferenceOptions, Type)

互換性のあるマップされた値を再利用するか、要求されたマネージド型に変換します。

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

型パラメーター

T

マネージド結果の種類。

パラメーター

reference
JniObjectReference

変換するソース JNI 参照。

options
JniObjectReferenceOptions

ソース参照転送オプション。

targetType
Type

要求された互換性のあるランタイム ターゲット、またはnullするときにtypeof(T)。

戻り値

T

再利用または変換された型指定された値。 default(T)できます。 ゼロ参照は default(T)を返します。

注釈

有効な JNI 参照の場合、要求された targetType を Tに割り当て可能である必要があります。

適用対象