Partager via


MtpDevice.GetStorageId(Int32) Method

Definition

Retrieves the ID of the storage unit containing the given object on the device.

[Android.Runtime.Register("getStorageId", "(I)J", "")]
public long GetStorageId (int objectHandle);
[<Android.Runtime.Register("getStorageId", "(I)J", "")>]
member this.GetStorageId : int -> int64

Parameters

objectHandle
Int32

handle of the object to query

Returns

the object's storage unit ID

Attributes

Remarks

Retrieves the ID of the storage unit containing the given object on the device.

Java documentation for android.mtp.MtpDevice.getStorageId(int).

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