Delen via


TeamFoundationCacheService<TKey, TValue>.Set Method

Adds item to the cache. If item with specified key exists in the cache, it is replaced.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Sub Set ( _
    requestContext As TeamFoundationRequestContext, _
    key As TKey, _
    value As TValue _
)
public void Set(
    TeamFoundationRequestContext requestContext,
    TKey key,
    TValue value
)
public:
void Set(
    TeamFoundationRequestContext^ requestContext, 
    TKey key, 
    TValue value
)
member Set : 
        requestContext:TeamFoundationRequestContext * 
        key:'TKey * 
        value:'TValue -> unit
public function Set(
    requestContext : TeamFoundationRequestContext, 
    key : TKey, 
    value : TValue
)

Parameters

Remarks

This method is thread safe.

.NET Framework Security

See Also

Reference

TeamFoundationCacheService<TKey, TValue> Class

Microsoft.TeamFoundation.Framework.Server Namespace