XFileManager.FromStream Method ()

Creates an XFile object from a data stream.

Overload List

public XFile FromStream(Stream);
public XFile FromStream(Stream, int);

Remarks

After using this method, use one of the XFile methods to retrieve a data object.

Exception GraphicsException.ErrorCode Cause
GraphicsException XFileErrorCodes.BadValue A variable is outside its expected range; typically returned when an object is invalid.
XFileErrorCodes.ParseError Data stream could not be parsed.
ArgumentOutOfRangeExceptionLeave Site N/A Length must be greater than zero.
NotSupportedExceptionLeave Site N/A The stream must support reading.