共用方式為


DocumentsContract.IsRootUri(Context, Uri) Method

Definition

Test if the given URI represents specific root backed by DocumentsProvider.

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

Parameters

context
Context
uri
Uri

Returns

Attributes

Remarks

Test if the given URI represents specific root backed by DocumentsProvider.

Java documentation for android.provider.DocumentsContract.isRootUri(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