GenericDocument.Builder.ClearProperty(String) Method

Definition

Clears the value for the property with the given name.

[Android.Runtime.Register("clearProperty", "(Ljava/lang/String;)Landroid/app/appsearch/GenericDocument$Builder;", "GetClearProperty_Ljava_lang_String_Handler", ApiSince=35)]
public virtual Java.Lang.Object ClearProperty(string name);
[<Android.Runtime.Register("clearProperty", "(Ljava/lang/String;)Landroid/app/appsearch/GenericDocument$Builder;", "GetClearProperty_Ljava_lang_String_Handler", ApiSince=35)>]
abstract member ClearProperty : string -> Java.Lang.Object
override this.ClearProperty : string -> Java.Lang.Object

Parameters

name
String

The name of the property to clear. This value cannot be null.

Returns

Attributes

Remarks

Clears the value for the property with the given name. Note that this method does not support property paths. You should check for the existence of the property in GenericDocument.getPropertyNames() if you need to make sure the property being cleared actually exists. If the string passed is an invalid or nonexistent property, no error message or behavior will be observed.

Android reference for android.app.appsearch.GenericDocument.Builder.clearProperty.

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