指定通道的策略约束。
语法
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;
成员
channelBinding
需要哪个通道绑定。 支持以下值:
channelPropertyConstraints
替代默认约束集的通道属性约束数组。 此处指定的约束与默认约束集相结合,限制了将匹配的策略集。
如果未为给定属性指定通道属性约束,则将使用默认约束值。 有关受支持的属性集及其默认值,请参阅 WS_CHANNEL_PROPERTY_CONSTRAINT 。
channelPropertyConstraintCount
channelPropertyConstraints 数组中指定的元素数。
如果此值为 0,则 channelPropertyConstraints 数组可能为 NULL。
securityConstraints
对可能使用的安全类型的约束。
将此字段设置为 NULL 表示没有安全性的约束。
policyExtensions
policyExtensionCount
要求
| 要求 | 值 | 
|---|---|
| 最低受支持的客户端 | Windows 7 [桌面应用 |UWP 应用] | 
| 最低受支持的服务器 | Windows Server 2008 R2 [桌面应用 |UWP 应用] | 
| 标头 | webservices.h |