共用方式為


IWildcardType.GetUpperBounds Method

Definition

Returns an array of Type objects representing the upper bound(s) of this type variable.

[Android.Runtime.Register("getUpperBounds", "()[Ljava/lang/reflect/Type;", "GetGetUpperBoundsHandler:Java.Lang.Reflect.IWildcardTypeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Reflect.IType[] GetUpperBounds ();
[<Android.Runtime.Register("getUpperBounds", "()[Ljava/lang/reflect/Type;", "GetGetUpperBoundsHandler:Java.Lang.Reflect.IWildcardTypeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetUpperBounds : unit -> Java.Lang.Reflect.IType[]

Returns

IType[]

an array of Types representing the upper bound(s) of this type variable

Attributes

Exceptions

if any of the bounds points to a missing type

if any bound points to a type that cannot be instantiated for some reason

Remarks

Returns an array of Type objects representing the upper bound(s) of this type variable. If no upper bound is explicitly declared, the upper bound is Object.

For each upper bound B : <ul> <li>if B is a parameterized type or a type variable, it is created, (see java.lang.reflect.ParameterizedType ParameterizedType for the details of the creation process for parameterized types). <li>Otherwise, B is resolved. </ul>

Java documentation for java.lang.reflect.WildcardType.getUpperBounds().

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