IsValid property

  1. @override
bool get IsValid
override
Defines an implicit conversion between String and FolderId. The unique Id to convert to FolderId. Defines an implicit conversion between WellKnownFolderName and FolderId. The folder name to convert to FolderId. True if this instance is valid, false otherthise.

Implementation

// static implicit operator FolderId(String uniqueId)
//        {
//            return new FolderId(uniqueId);
//        }

/// <summary>
/// Defines an implicit conversion between WellKnownFolderName and FolderId.
/// </summary>
/// <param name="folderName">The folder name to convert to FolderId.</param>
/// <returns>A FolderId initialized with the specified folder name.</returns>
// static implicit operator FolderId(WellKnownFolderName folderName)
//        {
//            return new FolderId(folderName);
//        }

/// <summary>
/// True if this instance is valid, false otherthise.
/// </summary>
/// <value><c>true</c> if this instance is valid; otherwise, <c>false</c>.</value>
@override
bool get IsValid {
  if (this.FolderName != null) {
    return (this.Mailbox == null) || this.Mailbox!.IsValid;
  } else {
    return super.IsValid;
  }
}