次の方法で共有


JavaObjectExtensions.JavaCast<TResult>(IJavaObject) Method

Definition

public static TResult? JavaCast<TResult> (this Android.Runtime.IJavaObject? instance) where TResult : class, Android.Runtime.IJavaObject;
static member JavaCast : Android.Runtime.IJavaObject -> 'Result (requires 'Result : null and 'Result :> Android.Runtime.IJavaObject)

Type Parameters

TResult

Parameters

instance
IJavaObject

Returns

TResult

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to