确定属性是否是集合的多属性键的一部分。
语法
HRESULT get_IsCombinedKey(
[out,
retval] VARIANT_BOOL* pfIsCombinedKey
);
parameters
pfIsCombinedKey
一个指向 VARIANT_BOOL
的指针。 VARIANT_TRUE
如果属性是多属性键的一部分,则为 ;否则为 VARIANT_FALSE
。
返回值
HRESULT
。 可能的值包括(但并不限于)下表中的项。
值 | 说明 |
---|---|
S_OK | 指示操作成功。 |
备注
binding
元素是组合键的示例。 在以下示例中 binding
, 元素包含 protocol
属于组合键的 和 bindingInformation
属性。
<element name="bindings">
<collection addElement="binding" clearElement="clear">
<attribute name="protocol" type="string" required="true" isCombinedKey="true" validationType="nonEmptyString" />
<attribute name="bindingInformation" type="string" required="true" isCombinedKey="true" validationType="nonEmptyString" />
</collection>
</element>
元素 bindings
可以包含具有相同属性的任意数量的元素 protocol
。 但是,元素 bindings
不能包含多个 binding
具有相同 protocol
和 bindingInformation
属性的元素。
要求
类型 | 说明 |
---|---|
客户端 | - Windows Vista 上的 IIS 7.0 - Windows 7 上的 IIS 7.5 - Windows 8 上的 IIS 8.0 - Windows 10 上的 IIS 10.0 |
服务器 | - Windows Server 2008 上的 IIS 7.0 - Windows Server 2008 R2 上的 IIS 7.5 - Windows Server 2012 上的 IIS 8.0 - Windows Server 2012 R2 上的 IIS 8.5 - Windows Server 2016 上的 IIS 10.0 |
产品 | - IIS 7.0、IIS 7.5、IIS 8.0、IIS 8.5、IIS 10.0 - IIS Express 7.5、IIS Express 8.0、IIS Express 10.0 |
Header | Ahadmin.h |
另请参阅
IAppHostPropertySchema 接口
IAppHostPropertySchema::IsUniqueKey 属性