NSStream.Close Method


Closes the stream and releases resources associated with it.

public virtual void Close ();
abstract member Close : unit -> unit
override this.Close : unit -> unit


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