Language

DefaultedHttpContext.SetAttribute(String, Object) Method

Definition

Sets an attribute in the local context without changing the default context.

[Android.Runtime.Register("setAttribute", "(Ljava/lang/String;Ljava/lang/Object;)V", "")]
public void SetAttribute(string? id, Java.Lang.Object? obj);
[<Android.Runtime.Register("setAttribute", "(Ljava/lang/String;Ljava/lang/Object;)V", "")>]
abstract member SetAttribute : string * Java.Lang.Object -> unit
override this.SetAttribute : string * Java.Lang.Object -> unit

Parameters

id
String

The name of the attribute to set in the local context.

obj
Object

The value passed to the local context. If a later local lookup returns null, the default context is queried.

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