Ce sujet n'a pas encore été évalué - Évaluez ce sujet

Méthode Add (String, Object)

Ajoute un objet au cache.

Espace de noms :  Microsoft.ApplicationServer.Caching
Assembly :  Microsoft.ApplicationServer.Caching.Client (en Microsoft.ApplicationServer.Caching.Client.dll)
public DataCacheItemVersion Add(
	string key,
	Object value
)

Paramètres

key
Type : System..::..String
Valeur unique utilisée pour stocker et récupérer l'objet dans le cache. La taille des noms de clés doit être inférieure à 65 Ko.
value
Type : System..::..Object
Objet enregistré dans le cache.

Valeur de retour

Type : Microsoft.ApplicationServer.Caching..::..DataCacheItemVersion
Objet DataCacheItemVersion représentant la version de l'objet enregistré dans le cache sous la valeur key.

If an item using the same key is already present in the cache, this call throws an exception of type DataCacheException with the ErrorCode set to KeyAlreadyExists. Expiration settings are derived from the named cache configuration.

Cela vous a-t-il été utile ?
(1500 caractères restants)

Ajouts de la communauté

AJOUTER
© 2013 Microsoft. Tous droits réservés.
facebook page visit twitter rss feed newsletter