Android.Net.Uri.FromFile Method
Creates a Uri from a file.

Syntax

[Android.Runtime.Register("fromFile", "(Ljava/io/File;)Landroid/net/Uri;", "")]
public static Uri FromFile (Java.IO.File file)

Parameters

file
Documentation for this section has not yet been entered.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.NullPointerExceptionif file is null

Remarks

Creates a Uri from a file. The URI has the form "file://". Encodes path characters with the exception of '/'.

Example: "file:///tmp/android.txt"

[Android Documentation]

Requirements

Namespace: Android.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1