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

Syntax

[Android.Runtime.Register("openOutputStream", "(Landroid/net/Uri;Ljava/lang/String;)Ljava/io/OutputStream;", "")]
public System.IO.Stream OpenOutputStream (Android.Net.Uri uri, string mode)

See Also

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

Parameters

uri
The desired URI.
mode
May be "w", "wa", "rw", or "rwt".

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 3