WS_POLICY_CONSTRAINTS structure (webservices.h)

Specifies policy constraints for a channel.

Syntax

typedef struct _WS_POLICY_CONSTRAINTS {
  WS_CHANNEL_BINDING             channelBinding;
  WS_CHANNEL_PROPERTY_CONSTRAINT *channelPropertyConstraints;
  ULONG                          channelPropertyConstraintCount;
  WS_SECURITY_CONSTRAINTS        *securityConstraints;
  WS_POLICY_EXTENSION            **policyExtensions;
  ULONG                          policyExtensionCount;
} WS_POLICY_CONSTRAINTS;

Members

channelBinding

Which channel binding is required. The following values are supported:

channelPropertyConstraints

An array of channel property constraints which override the default set of constraints. The constraints specified here, combined with the default set of constraints limits the set of policies that will be matched.

If a channel property constraint is not specified for a given property, then a default constraint value will be used. See WS_CHANNEL_PROPERTY_CONSTRAINT for the supported set of properties and their default values.

channelPropertyConstraintCount

The number of elements specified in the channelPropertyConstraints array.

If this value is 0, then the channelPropertyConstraints array may be NULL.

securityConstraints

Constraints on the type of security that may be used.

Setting this field to NULL indicates a constraint of no security.

policyExtensions

policyExtensionCount

Requirements

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