URLConnection.GuessContentTypeFromName(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to determine the content type of an object, based on the specified "file" component of a URL.
[Android.Runtime.Register("guessContentTypeFromName", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public static string? GuessContentTypeFromName (string? fname);
[<Android.Runtime.Register("guessContentTypeFromName", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
static member GuessContentTypeFromName : string -> string
Parameters
- fname
- String
a filename.
Returns
a guess as to what the content type of the object is, based upon its file name.
- Attributes
Remarks
Tries to determine the content type of an object, based on the specified "file" component of a URL. This is a convenience method that can be used by subclasses that override the getContentType
method.
Java documentation for java.net.URLConnection.guessContentTypeFromName(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.