Condividi tramite


FileCacheService.UpdateCacheSize Method

This called to update the size of a servers cache. It can be called with both positive or negative numbers appropriately.

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

Syntax

'Declaration
Public Sub UpdateCacheSize ( _
    requestContext As TeamFoundationRequestContext, _
    serverId As String, _
    cacheSize As Long, _
    fileCount As Integer _
)
public void UpdateCacheSize(
    TeamFoundationRequestContext requestContext,
    string serverId,
    long cacheSize,
    int fileCount
)
public:
void UpdateCacheSize(
    TeamFoundationRequestContext^ requestContext, 
    String^ serverId, 
    long long cacheSize, 
    int fileCount
)
member UpdateCacheSize : 
        requestContext:TeamFoundationRequestContext * 
        serverId:string * 
        cacheSize:int64 * 
        fileCount:int -> unit
public function UpdateCacheSize(
    requestContext : TeamFoundationRequestContext, 
    serverId : String, 
    cacheSize : long, 
    fileCount : int
)

Parameters

  • cacheSize
    Type: System.Int64

    Adjustment size to the cache.

  • fileCount
    Type: System.Int32

    Number of files being added or removed from the cache.

.NET Framework Security

See Also

Reference

FileCacheService Class

Microsoft.TeamFoundation.Server.Core Namespace