File.AbsolutePath 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 absolute path of this file.
public virtual string AbsolutePath { [Android.Runtime.Register("getAbsolutePath", "()Ljava/lang/String;", "GetGetAbsolutePathHandler")] get; }
[<get: Android.Runtime.Register("getAbsolutePath", "()Ljava/lang/String;", "GetGetAbsolutePathHandler")>]
member this.AbsolutePath : string
Property Value
The absolute pathname string denoting the same file or directory as this abstract pathname
- Attributes
Remarks
Returns the absolute path of this file. An absolute path is a path that starts at a root of the file system. On Android, there is only one root: /
.
A common use for absolute paths is when passing paths to a Process
as command-line arguments, to remove the requirement implied by relative paths, that the child must have the same working directory as its parent.
Java documentation for java.io.File.getAbsolutePath()
.
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.