共用方式為


FileCacheService.RetrieveFileFromCache 方法

從快取擷取檔案並將它傳送至用戶端。

命名空間:  Microsoft.TeamFoundation.Server.Core
組件:  Microsoft.TeamFoundation.Server.Core (在 Microsoft.TeamFoundation.Server.Core.dll 中)

語法

'宣告
Public Function RetrieveFileFromCache ( _
    requestContext As TeamFoundationRequestContext, _
    fileInfo As FileInformation, _
    downloadState As IDownloadState, _
    compressOutput As Boolean _
) As Boolean
public bool RetrieveFileFromCache(
    TeamFoundationRequestContext requestContext,
    FileInformation fileInfo,
    IDownloadState downloadState,
    bool compressOutput
)

參數

傳回值

類型:System.Boolean
如果檔案從快取區,擷取為 true。

.NET Framework 安全性

請參閱

參考

FileCacheService 類別

Microsoft.TeamFoundation.Server.Core 命名空間