Udostępnij za pośrednictwem


DocumentsProvider.QueryDocument(String, String[]) Method

Definition

Return metadata for the single requested document.

[Android.Runtime.Register("queryDocument", "(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;", "GetQueryDocument_Ljava_lang_String_arrayLjava_lang_String_Handler")]
public abstract Android.Database.ICursor? QueryDocument (string? documentId, string[]? projection);
[<Android.Runtime.Register("queryDocument", "(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;", "GetQueryDocument_Ljava_lang_String_arrayLjava_lang_String_Handler")>]
abstract member QueryDocument : string * string[] -> Android.Database.ICursor

Parameters

documentId
String

the document to return.

projection
String[]

list of Document columns to put into the cursor. If null all supported columns should be included.

Returns

Attributes

Exceptions

Remarks

Return metadata for the single requested document. You should avoid making network requests to keep this request fast.

Java documentation for android.provider.DocumentsProvider.queryDocument(java.lang.String, java.lang.String[]).

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