MonoMac.Foundation.NSData.FromStream Method
Creates an NSData by loading the contents of the provided stream.

Syntax

public static NSData FromStream (System.IO.Stream stream)

Parameters

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.

Requirements

Namespace: MonoMac.Foundation
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0