DocumentsContract.EjectRoot(ContentResolver, 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.
Ejects the given root.
[Android.Runtime.Register("ejectRoot", "(Landroid/content/ContentResolver;Landroid/net/Uri;)V", "", ApiSince=26)]
public static void EjectRoot (Android.Content.ContentResolver content, Android.Net.Uri rootUri);
[<Android.Runtime.Register("ejectRoot", "(Landroid/content/ContentResolver;Landroid/net/Uri;)V", "", ApiSince=26)>]
static member EjectRoot : Android.Content.ContentResolver * Android.Net.Uri -> unit
Parameters
- content
- ContentResolver
- rootUri
- Uri
root with Root#FLAG_SUPPORTS_EJECT
to be ejected
- Attributes
Remarks
Ejects the given root. It throws IllegalStateException
when ejection failed.
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.