FileName property

String? FileName
Loads the content of the file attachment into the specified file. Calling this method results in a call to EWS. The name of the file to load the content of the attachment into. If the file already exists, it is overwritten. Gets the name of the file the attachment is linked to.

Implementation

// void LoadWithFileName(String fileName)
//        {
//            this.loadToStream = new FileStream(fileName, FileMode.Create);
//
//            try
//            {
//                this.Load();
//            }
//            finally
//            {
//                this.loadToStream.Dispose();
//                this.loadToStream = null;
//            }
//
//            this.fileName = fileName;
//            this.content = null;
//            this.contentStream = null;
//        }

/// <summary>
/// Gets the name of the file the attachment is linked to.
/// </summary>
String? get FileName => this._fileName;
void FileName=(String? value)

Implementation

set FileName(String? value) {
  this.ThrowIfThisIsNotNew();

  this._fileName = value;
  this._content = null;
  this._contentStream = null;
}