DocumentsContract.Document.ColumnDocumentId Field

Definition

Unique ID of a document.

[Android.Runtime.Register("COLUMN_DOCUMENT_ID")]
public const string ColumnDocumentId;
[<Android.Runtime.Register("COLUMN_DOCUMENT_ID")>]
val mutable ColumnDocumentId : string

Field Value

Attributes

Remarks

Unique ID of a document. This ID is both provided by and interpreted by a DocumentsProvider, and should be treated as an opaque value by client applications. This column is required.

Each document must have a unique ID within a provider, but that single document may be included as a child of multiple directories.

A provider must always return durable IDs, since they will be used to issue long-term URI permission grants when an application interacts with Intent#ACTION_OPEN_DOCUMENT and Intent#ACTION_CREATE_DOCUMENT.

Type: STRING

Java documentation for android.provider.DocumentsContract.Document.COLUMN_DOCUMENT_ID.

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