Validate method

  1. @override
void Validate()
override
Validates the request.

Implementation

@override
void Validate() {
  super.Validate();
  EwsUtilities.ValidateParamCollection(this.Folders, "Folders");
  for (int i = 0; i < this.Folders.length; i++) {
    Folder folder = this.Folders[i];

    if ((folder == null) || folder.IsNew) {
      throw new ArgumentException("FolderToUpdateCannotBeNullOrNew($i)");
    }

    folder.Validate();
  }
}