NSData.FromStream(Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.