GenericDocument.Builder.SetId(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the ID of this document, changing the value provided in the constructor.
[Android.Runtime.Register("setId", "(Ljava/lang/String;)Landroid/app/appsearch/GenericDocument$Builder;", "GetSetId_Ljava_lang_String_Handler", ApiSince=35)]
public virtual Java.Lang.Object SetId(string id);
[<Android.Runtime.Register("setId", "(Ljava/lang/String;)Landroid/app/appsearch/GenericDocument$Builder;", "GetSetId_Ljava_lang_String_Handler", ApiSince=35)>]
abstract member SetId : string -> Java.Lang.Object
override this.SetId : string -> Java.Lang.Object
Parameters
- id
- String
Returns
- Attributes
Remarks
Sets the ID of this document, changing the value provided in the constructor. No special values are reserved or understood by the infrastructure. Document IDs are unique within the combination of package, database, and namespace. Setting a document with a duplicate id will overwrite the original document with the new document, enforcing uniqueness within the above constraint.
Android reference for android.app.appsearch.GenericDocument.Builder.setId.
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.