Condividi tramite


Proprietà IAppHostPropertySchema::IsCombinedKey

Determina se una proprietà fa parte di una chiave a più attributi per una raccolta.

Sintassi

HRESULT get_IsCombinedKey(  
   [out,  
   retval] VARIANT_BOOL* pfIsCombinedKey  
);  

Parametri

pfIsCombinedKey
Puntatore a un oggetto VARIANT_BOOL. VARIANT_TRUE se la proprietà fa parte di una chiave a più attributi; in caso contrario, VARIANT_FALSE.

Valore restituito

Oggetto HRESULT. I valori possibili includono, ma non sono limitati a, quelli indicati nella tabella seguente.

Valore Descrizione
S_OK Indica che l'operazione è riuscita.

Commenti

L'elemento binding è un esempio di chiave combinata. Nell'esempio seguente l'elemento binding contiene protocol gli attributi e bindingInformation che fanno parte di una chiave combinata.

<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>

L'elemento bindings può contenere un numero qualsiasi di elementi con lo stesso protocol attributo. Tuttavia, l'elemento bindings non può contenere più di un binding elemento con gli stessi protocol attributi e bindingInformation .

Requisiti

Tipo Descrizione
Client - IIS 7.0 in Windows Vista
- IIS 7.5 in Windows 7
- IIS 8.0 in Windows 8
- IIS 10.0 in Windows 10
Server - IIS 7.0 in Windows Server 2008
- IIS 7.5 in Windows Server 2008 R2
- IIS 8.0 in Windows Server 2012
- IIS 8.5 in Windows Server 2012 R2
- IIS 10.0 in Windows Server 2016
Prodotto - 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
Intestazione Ahadmin.h

Vedere anche

Interfaccia IAppHostPropertySchema
Proprietà IAppHostPropertySchema::IsUniqueKey