Editar

Compartir a través de


NSData.FromStream(Stream) Method

Definition

Creates an NSData by loading the contents of the provided stream.

public static Foundation.NSData FromStream (System.IO.Stream stream);
static member FromStream : System.IO.Stream -> Foundation.NSData

Parameters

stream
Stream

System.IO.Stream to wrap as an NSData.

Returns

Newly created NSData, or null if it the stream does not support reading or the stream throws an exception.

Remarks

This method will load the contents of the stream starting at the current location in the stream.

Applies to