Android.Content.ContentResolver.OpenInputStream Method
Open a stream on to the content associated with a content URI.

Syntax

[Android.Runtime.Register("openInputStream", "(Landroid/net/Uri;)Ljava/io/InputStream;", "")]
public System.IO.Stream OpenInputStream (Android.Net.Uri uri)

See Also

ContentResolver.OpenAssetFileDescriptor(Android.Net.Uri, System.String)

Parameters

uri
The desired URI.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.IO.FileNotFoundExceptionif the provided URI could not be opened.

Remarks

Open a stream on to the content associated with a content URI. If there is no data associated with the URI, FileNotFoundException is thrown.

Accepts the following URI schemes:

See ContentResolver.OpenAssetFileDescriptor(Android.Net.Uri, System.String) for more information on these schemes.

[Android Documentation]

Requirements

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