DocumentsContract.BuildSearchDocumentsUri 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.
Overloads
| Name | Description |
|---|---|
| BuildSearchDocumentsUri(Uri, String) |
Build URI representing a search for matching documents under a specific directory in a document provider. |
| BuildSearchDocumentsUri(String, String, String) |
Build URI representing a search for matching documents under a specific root in a document provider. |
BuildSearchDocumentsUri(Uri, String)
Build URI representing a search for matching documents under a specific directory in a document provider.
[Android.Runtime.Register("buildSearchDocumentsUri", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;", "", ApiSince=37)]
public static Android.Net.Uri BuildSearchDocumentsUri(Android.Net.Uri parentDocumentUri, string? query);
[<Android.Runtime.Register("buildSearchDocumentsUri", "(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;", "", ApiSince=37)>]
static member BuildSearchDocumentsUri : Android.Net.Uri * string -> Android.Net.Uri
Parameters
- parentDocumentUri
- Uri
the document that search results should be restricted to, which must
be a directory with mime type of Document#MIME_TYPE_DIR and have Document#FLAG_SUPPORTS_SUBTREE_SEARCH set.
- query
- String
string to match documents against.
Returns
- Attributes
Applies to
BuildSearchDocumentsUri(String, String, String)
Build URI representing a search for matching documents under a specific root in a document provider.
[Android.Runtime.Register("buildSearchDocumentsUri", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;", "")]
public static Android.Net.Uri? BuildSearchDocumentsUri(string? authority, string? rootId, string? query);
[<Android.Runtime.Register("buildSearchDocumentsUri", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri;", "")>]
static member BuildSearchDocumentsUri : string * string * string -> Android.Net.Uri
Parameters
- authority
- String
- rootId
- String
- query
- String
Returns
- Attributes
Remarks
Build URI representing a search for matching documents under a specific root in a document provider. When queried, a provider will return zero or more rows with columns defined by Document.
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.
See also
- <xref:Android.Provider.DocumentsProvider.QuerySearchDocuments(System.String%2c+System.String%2c+System.String)>
- GetRootId(Uri)
- GetSearchDocumentsQuery(Uri)