Share via


DocumentsContract.IsDocumentUri(Context, Uri) Method

Definition

Test if the given URI represents a Document backed by a DocumentsProvider.

[Android.Runtime.Register("isDocumentUri", "(Landroid/content/Context;Landroid/net/Uri;)Z", "")]
public static bool IsDocumentUri (Android.Content.Context? context, Android.Net.Uri? uri);
[<Android.Runtime.Register("isDocumentUri", "(Landroid/content/Context;Landroid/net/Uri;)Z", "")>]
static member IsDocumentUri : Android.Content.Context * Android.Net.Uri -> bool

Parameters

context
Context
uri
Uri

Returns

Attributes

Remarks

Test if the given URI represents a Document backed by a DocumentsProvider.

Java documentation for android.provider.DocumentsContract.isDocumentUri(android.content.Context, android.net.Uri).

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

See also

  • <xref:Android.Provider.DocumentsContract.BuildDocumentUri(System.String%2c+System.String)>
  • <xref:Android.Provider.DocumentsContract.BuildDocumentUriUsingTree(Android.Net.Uri%2c+System.String)>