Sdílet prostřednictvím


MtpDevice.GetParent(Int32) Method

Definition

Retrieves the object handle for the parent of an object on the device.

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

Parameters

objectHandle
Int32

handle of the object to query

Returns

the parent's handle, or zero if it is in the root of the storage

Attributes

Remarks

Retrieves the object handle for the parent of an object on the device.

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