Share via


URL.File Property

Definition

Gets the file name of this URL.

public string? File { [Android.Runtime.Register("getFile", "()Ljava/lang/String;", "")] get; }
[<get: Android.Runtime.Register("getFile", "()Ljava/lang/String;", "")>]
member this.File : string

Property Value

the file name of this URL, or an empty string if one does not exist

Attributes

Remarks

Gets the file name of this URL. The returned file portion will be the same as getPath(), plus the concatenation of the value of getQuery(), if any. If there is no query portion, this method and getPath() will return identical results.

Java documentation for java.net.URL.getFile().

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