File.Parent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the pathname string of this abstract pathname's parent, or
null
if this pathname does not name a parent directory.
public virtual string? Parent { [Android.Runtime.Register("getParent", "()Ljava/lang/String;", "GetGetParentHandler")] get; }
[<get: Android.Runtime.Register("getParent", "()Ljava/lang/String;", "GetGetParentHandler")>]
member this.Parent : string
Property Value
The pathname string of the parent directory named by this
abstract pathname, or null
if this pathname
does not name a parent
- Attributes
Remarks
Returns the pathname string of this abstract pathname's parent, or null
if this pathname does not name a parent directory.
The <em>parent</em> of an abstract pathname consists of the pathname's prefix, if any, and each name in the pathname's name sequence except for the last. If the name sequence is empty then the pathname does not name a parent directory.
Java documentation for java.io.File.getParent()
.
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.