MimeTypeMap.GetFileExtensionFromUrl(String) Method

Definition

Returns the file extension or an empty string if there is no extension.

[Android.Runtime.Register("getFileExtensionFromUrl", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? GetFileExtensionFromUrl (string? url);
[<Android.Runtime.Register("getFileExtensionFromUrl", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
static member GetFileExtensionFromUrl : string -> string

Parameters

url
String

url

Returns

The file extension of the given url.

Attributes

Remarks

Returns the file extension or an empty string if there is no extension. This method is a convenience method for obtaining the extension of a url and has undefined results for other Strings.

Java documentation for android.webkit.MimeTypeMap.getFileExtensionFromUrl(java.lang.String).

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