Aracılığıyla paylaş


StorageManager.GetStorageVolume Method

Definition

Overloads

GetStorageVolume(Uri)

Return the StorageVolume that contains the given MediaStore item.

GetStorageVolume(File)

Return the StorageVolume that contains the given file, or null if none.

GetStorageVolume(Uri)

Return the StorageVolume that contains the given MediaStore item.

[Android.Runtime.Register("getStorageVolume", "(Landroid/net/Uri;)Landroid/os/storage/StorageVolume;", "GetGetStorageVolume_Landroid_net_Uri_Handler", ApiSince=29)]
public virtual Android.OS.Storage.StorageVolume GetStorageVolume (Android.Net.Uri uri);
[<Android.Runtime.Register("getStorageVolume", "(Landroid/net/Uri;)Landroid/os/storage/StorageVolume;", "GetGetStorageVolume_Landroid_net_Uri_Handler", ApiSince=29)>]
abstract member GetStorageVolume : Android.Net.Uri -> Android.OS.Storage.StorageVolume
override this.GetStorageVolume : Android.Net.Uri -> Android.OS.Storage.StorageVolume

Parameters

uri
Uri

Returns

Attributes

Remarks

Return the StorageVolume that contains the given MediaStore item.

Java documentation for android.os.storage.StorageManager.getStorageVolume(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

GetStorageVolume(File)

Return the StorageVolume that contains the given file, or null if none.

[Android.Runtime.Register("getStorageVolume", "(Ljava/io/File;)Landroid/os/storage/StorageVolume;", "GetGetStorageVolume_Ljava_io_File_Handler", ApiSince=24)]
public virtual Android.OS.Storage.StorageVolume? GetStorageVolume (Java.IO.File file);
[<Android.Runtime.Register("getStorageVolume", "(Ljava/io/File;)Landroid/os/storage/StorageVolume;", "GetGetStorageVolume_Ljava_io_File_Handler", ApiSince=24)>]
abstract member GetStorageVolume : Java.IO.File -> Android.OS.Storage.StorageVolume
override this.GetStorageVolume : Java.IO.File -> Android.OS.Storage.StorageVolume

Parameters

file
File

Returns

Attributes

Remarks

Return the StorageVolume that contains the given file, or null if none.

Java documentation for android.os.storage.StorageManager.getStorageVolume(java.io.File).

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