ICompiledQueryCacheKeyGenerator.GenerateCacheKey(Expression, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
產生快取金鑰。
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 查詢是否會以非同步方式執行。
傳回
一個代表查詢快取金鑰的物件。