Freigeben über


Method.DefaultValue Property

Definition

Returns the default value for the annotation member represented by this Method instance.

public Java.Lang.Object? DefaultValue { [Android.Runtime.Register("getDefaultValue", "()Ljava/lang/Object;", "")] get; }
[<get: Android.Runtime.Register("getDefaultValue", "()Ljava/lang/Object;", "")>]
member this.DefaultValue : Java.Lang.Object

Property Value

the default value for the annotation member represented by this Method instance.

Attributes

Exceptions

if this annotation member is of type Class and no definition can be found

Remarks

Returns the default value for the annotation member represented by this Method instance. If the member is of a primitive type, an instance of the corresponding wrapper type is returned. Returns null if no default is associated with the member, or if the method instance does not represent a declared member of an annotation type.

Added in 1.5.

Java documentation for java.lang.reflect.Method.getDefaultValue().

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