Validate method

void Validate(
  1. TimeSpan timeWindow
)
Validates this instance against the specified time window. The time window.

Implementation

void Validate(TimeSpan timeWindow) {
  if (TimeSpan.fromUnitAndValue(
        TimeSpan.MINUTES,
        MergedFreeBusyInterval,
      ).time >
      timeWindow.time) {
    throw ArgumentException(
      "MergedFreeBusyInterval must be smaller than the specified time window.",
    );
  }

  EwsUtilities.ValidateParamAllowNull(
    DetailedSuggestionsWindow,
    "DetailedSuggestionsWindow",
  );
}