Files.ProbeContentType(IPath) Method

Definition

Probes the content type of a file.

[Android.Runtime.Register("probeContentType", "(Ljava/nio/file/Path;)Ljava/lang/String;", "", ApiSince=26)]
public static string? ProbeContentType (Java.Nio.FileNio.IPath? path);
[<Android.Runtime.Register("probeContentType", "(Ljava/nio/file/Path;)Ljava/lang/String;", "", ApiSince=26)>]
static member ProbeContentType : Java.Nio.FileNio.IPath -> string

Parameters

path
IPath

the path to the file to probe

Returns

String

The content type of the file, or null if the content type cannot be determined

Attributes

Remarks

Java documentation for java.nio.file.Files.probeContentType(java.nio.file.Path).

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