DocumentsContract.IsRootsUri(Context, Uri) 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.
Test if the given URI represents all roots of the authority
backed by DocumentsProvider.
[Android.Runtime.Register("isRootsUri", "(Landroid/content/Context;Landroid/net/Uri;)Z", "", ApiSince=29)]
public static bool IsRootsUri(Android.Content.Context context, Android.Net.Uri? uri);
[<Android.Runtime.Register("isRootsUri", "(Landroid/content/Context;Landroid/net/Uri;)Z", "", ApiSince=29)>]
static member IsRootsUri : Android.Content.Context * Android.Net.Uri -> bool
Parameters
- context
- Context
The context whose package manager is used to identify documents-provider authorities.
- uri
- Uri
The URI to classify; null does not match.
Returns
true when the URI uses the content scheme, has a documents-provider authority found through the context's package manager, and has one path segment named root; otherwise, false.
- Attributes
Remarks
Test if the given URI represents all roots of the authority backed by DocumentsProvider.
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.