Share via


URLConnection.FileNameMap Property

Definition

Returns a FileNameMap implementation suitable for guessing a content type based on a URL's "file" component. -or- Sets the FileNameMap.

public static Java.Net.IFileNameMap? FileNameMap { [Android.Runtime.Register("getFileNameMap", "()Ljava/net/FileNameMap;", "")] get; [Android.Runtime.Register("setFileNameMap", "(Ljava/net/FileNameMap;)V", "")] set; }
[<get: Android.Runtime.Register("getFileNameMap", "()Ljava/net/FileNameMap;", "")>]
[<set: Android.Runtime.Register("setFileNameMap", "(Ljava/net/FileNameMap;)V", "")>]
static member FileNameMap : Java.Net.IFileNameMap with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns a FileNameMap implementation suitable for guessing a content type based on a URL's "file" component.

Java documentation for java.net.URLConnection.getFileNameMap().

Property setter documentation:

Sets the FileNameMap.

If there is a security manager, this method first calls the security manager's checkSetFactory method to ensure the operation is allowed. This could result in a SecurityException.

Added in 1.2.

Java documentation for java.net.URLConnection.setFileNameMap(java.net.FileNameMap).

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