WS_DURATION_DESCRIPTION structure (webservices.h)

An optional type description used with WS_DURATION_TYPE. It is used to specify constraints on the set of values which can be deserialized.

Syntax

typedef struct _WS_DURATION_DESCRIPTION {
  WS_DURATION                     minValue;
  WS_DURATION                     maxValue;
  WS_DURATION_COMPARISON_CALLBACK comparer;
} WS_DURATION_DESCRIPTION;

Members

minValue

The minimum value.

maxValue

The maximum value.

comparer

Specifies a function which can be used to compare WS_DURATION. If NULL, a default comparer is used.

Because WS_DURATION has a partial ordering, not all durations can be unambiguously compared (for example, 1 month and 30 days). The default comparer function can compare durations that specify years and months (but no other components), or durations that specify no years or months (but any other component).

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header webservices.h