Udostępnij za pośrednictwem


File.Name Property

Definition

Returns the name of the file or directory denoted by this abstract pathname.

public virtual string Name { [Android.Runtime.Register("getName", "()Ljava/lang/String;", "GetGetNameHandler")] get; }
[<get: Android.Runtime.Register("getName", "()Ljava/lang/String;", "GetGetNameHandler")>]
member this.Name : string

Property Value

The name of the file or directory denoted by this abstract pathname, or the empty string if this pathname's name sequence is empty

Attributes

Remarks

Returns the name of the file or directory denoted by this abstract pathname. This is just the last name in the pathname's name sequence. If the pathname's name sequence is empty, then the empty string is returned.

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

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