共用方式為


StorageManager.StorageVolumesIncludingSharedProfiles Property

Definition

Return the list of shared/external storage volumes currently available to the calling user and the user it shares media with.

public virtual System.Collections.Generic.IList<Android.OS.Storage.StorageVolume> StorageVolumesIncludingSharedProfiles { [Android.Runtime.Register("getStorageVolumesIncludingSharedProfiles", "()Ljava/util/List;", "GetGetStorageVolumesIncludingSharedProfilesHandler", ApiSince=33)] [Android.Runtime.RequiresPermission("android.permission.MANAGE_EXTERNAL_STORAGE")] get; }
[<get: Android.Runtime.Register("getStorageVolumesIncludingSharedProfiles", "()Ljava/util/List;", "GetGetStorageVolumesIncludingSharedProfilesHandler", ApiSince=33)>]
[<get: Android.Runtime.RequiresPermission("android.permission.MANAGE_EXTERNAL_STORAGE")>]
member this.StorageVolumesIncludingSharedProfiles : System.Collections.Generic.IList<Android.OS.Storage.StorageVolume>

Property Value

Attributes

Remarks

Return the list of shared/external storage volumes currently available to the calling user and the user it shares media with. Please refer to multi-user support for more details.

This is similar to StorageManager#getStorageVolumes() except that the result also includes the volumes belonging to any user it shares media with

Java documentation for android.os.storage.StorageManager.getStorageVolumesIncludingSharedProfiles().

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