Metodo TeamFoundationCacheService<TKey, TValue>.Set
Aggiunge un elemento alla cache. Se l'elemento con la chiave specificata è presente nella cache, viene sostituito.
Spazio dei nomi: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Sintassi
'Dichiarazione
Public Sub Set ( _
requestContext As TeamFoundationRequestContext, _
key As TKey, _
value As TValue _
)
public void Set(
TeamFoundationRequestContext requestContext,
TKey key,
TValue value
)
Parametri
- requestContext
Tipo: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- key
Tipo: TKey
- value
Tipo: TValue
Note
Questo metodo è thread-safe.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.