共用方式為


ProxyStatistics.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 ( _
    serverId As String, _
    cacheSize As Long, _
    fileCount As Integer _
)
public void UpdateCacheSize(
    string serverId,
    long cacheSize,
    int fileCount
)
public:
void UpdateCacheSize(
    String^ serverId, 
    long long cacheSize, 
    int fileCount
)
member UpdateCacheSize : 
        serverId:string * 
        cacheSize:int64 * 
        fileCount:int -> unit
public function UpdateCacheSize(
    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

ProxyStatistics Class

Microsoft.TeamFoundation.Server.Core Namespace