Edit

Share via


NSStream.Close Method

Definition

Closes the stream and releases resources associated with it.

[Foundation.Export("close")]
public virtual void Close ();
abstract member Close : unit -> unit
override this.Close : unit -> unit
Attributes

Remarks

When a stream is closed it can no longer be used for reading or writing.

If the stream has been scheduled to execute on a run loop, the stream is automatically unregistered from it.

Applies to