Jazyk

BasicHttpContext.GetAttribute(String) Method

Definition

[Android.Runtime.Register("getAttribute", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGetAttribute_Ljava_lang_String_Handler")]
public virtual Java.Lang.Object? GetAttribute(string? id);
[<Android.Runtime.Register("getAttribute", "(Ljava/lang/String;)Ljava/lang/Object;", "GetGetAttribute_Ljava_lang_String_Handler")>]
abstract member GetAttribute : string -> Java.Lang.Object
override this.GetAttribute : string -> Java.Lang.Object

Parameters

id
String

The attribute name. This must not be null.

Returns

The local value, or the parent context's value when the local value is null. Returns null if neither context supplies a value.

Implements

Attributes

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