IPath.ToString Method

Definition

Returns the string representation of this path.

[Android.Runtime.Register("toString", "()Ljava/lang/String;", "GetToStringHandler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public string? ToString ();
[<Android.Runtime.Register("toString", "()Ljava/lang/String;", "GetToStringHandler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member ToString : unit -> string

Returns

the string representation of this path

Attributes

Remarks

Returns the string representation of this path.

If this path was created by converting a path string using the FileSystem#getPath getPath method then the path string returned by this method may differ from the original String used to create the path.

The returned path string uses the default name FileSystem#getSeparator separator to separate names in the path.

Java documentation for java.nio.file.Path.toString().

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