Megosztás a következőn keresztül:


OutputStream.Close Method

Definition

Closes this output stream and releases any system resources associated with this stream.

[Android.Runtime.Register("close", "()V", "GetCloseHandler")]
public virtual void Close ();
[<Android.Runtime.Register("close", "()V", "GetCloseHandler")>]
abstract member Close : unit -> unit
override this.Close : unit -> unit

Implements

Attributes

Exceptions

if an error occurs while closing this stream.

Remarks

Closes this output stream and releases any system resources associated with this stream. The general contract of close is that it closes the output stream. A closed stream cannot perform output operations and cannot be reopened.

The close method of OutputStream does nothing.

Java documentation for java.io.OutputStream.close().

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