語言

ICompiledQueryCacheKeyGenerator.GenerateCacheKey(Expression, Boolean) 方法

定義

產生快取金鑰。

public object GenerateCacheKey(System.Linq.Expressions.Expression query, bool async);
abstract member GenerateCacheKey : System.Linq.Expressions.Expression * bool -> obj
Public Function GenerateCacheKey (query As Expression, async As Boolean) As Object

參數

query
Expression

查詢時會產生快取金鑰。

async
Boolean

true 查詢是否會以非同步方式執行。

傳回

一個代表查詢快取金鑰的物件。

適用於