Files.ProbeContentType(IPath) 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.
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
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.