IFileNameMap.GetContentTypeFor(String) Method

Definition

Gets the MIME type for the specified file name.

[Android.Runtime.Register("getContentTypeFor", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetContentTypeFor_Ljava_lang_String_Handler:Java.Net.IFileNameMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public string? GetContentTypeFor (string? fileName);
[<Android.Runtime.Register("getContentTypeFor", "(Ljava/lang/String;)Ljava/lang/String;", "GetGetContentTypeFor_Ljava_lang_String_Handler:Java.Net.IFileNameMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetContentTypeFor : string -> string

Parameters

fileName
String

the specified file name

Returns

a String indicating the MIME type for the specified file name.

Attributes

Remarks

Gets the MIME type for the specified file name.

Java documentation for java.net.FileNameMap.getContentTypeFor(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