Validate method

void Validate()
override
Validates this instance.

Implementation

void Validate() {
  // Search folder must have at least one root folder id.
  if (this.RootFolderIds.Count == 0) {
    throw new ServiceValidationException(
        "Strings.SearchParametersRootFolderIdsEmpty");
  }

  // Validate the search filter
  if (this.SearchFilter != null) {
    this.SearchFilter!.InternalValidate();
  }
}