다음을 통해 공유


MtpDevice.DeleteObject(Int32) Method

Definition

Deletes an object on the device.

[Android.Runtime.Register("deleteObject", "(I)Z", "")]
public bool DeleteObject (int objectHandle);
[<Android.Runtime.Register("deleteObject", "(I)Z", "")>]
member this.DeleteObject : int -> bool

Parameters

objectHandle
Int32

handle of the object to delete

Returns

true if the deletion succeeds

Attributes

Remarks

Deletes an object on the device. This call may block, since deleting a directory containing many files may take a long time on some devices.

Java documentation for android.mtp.MtpDevice.deleteObject(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