Freigeben über


File.CanonicalFile Property

Definition

Returns the canonical form of this abstract pathname.

public virtual Java.IO.File CanonicalFile { [Android.Runtime.Register("getCanonicalFile", "()Ljava/io/File;", "GetGetCanonicalFileHandler")] get; }
[<get: Android.Runtime.Register("getCanonicalFile", "()Ljava/io/File;", "GetGetCanonicalFileHandler")>]
member this.CanonicalFile : Java.IO.File

Property Value

The canonical pathname string denoting the same file or directory as this abstract pathname

Attributes

Exceptions

if an I/O error occurs.

Remarks

Returns the canonical form of this abstract pathname. Equivalent to new&nbsp;File(this.{@link #getCanonicalPath}).

Added in 1.2.

Java documentation for java.io.File.getCanonicalFile().

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