LoadWithStream method

Future<void> LoadWithStream(
  1. Stream stream
)
Loads the content of the file attachment into the specified stream. Calling this method results in a call to EWS. The stream to load the content of the attachment into.

Implementation

Future<void> LoadWithStream(Stream stream) {
  this._loadToStream = stream as Stream<Uint8List>?;

  try {
    return this.Load();
  } finally {
    this._loadToStream = null;
  }
}