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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- key
Type: TKey
- value
Type: TValue
Remarks
This method is thread safe.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.