判斷屬性是否為集合之多重屬性索引鍵的一部分。
語法
HRESULT get_IsCombinedKey(
[out,
retval] VARIANT_BOOL* pfIsCombinedKey
);
參數
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 屬性的專案。
規格需求
| 類型 | 描述 |
|---|---|
| Client | - 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 |
| 標頭 | Ahadmin.h |
另請參閱
IAppHostPropertySchema 介面
IAppHostPropertySchema::IsUniqueKey 屬性