匯出 (0) 列印
全部展開
本主題尚未接受評分 - 為這個主題評分

BulkGet 方法 (IEnumerable(String))

取得所有系統區域內與指定索引鍵相關聯的所有物件。這個方式不會搜尋使用者定義的區域。

命名空間:  Microsoft.ApplicationServer.Caching
組件:  Microsoft.ApplicationServer.Caching.Client (在 Microsoft.ApplicationServer.Caching.Client.dll 中)
public IEnumerable<KeyValuePair<string, Object>> BulkGet(
	IEnumerable<string> keys
)

參數

keys
型別:System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
要擷取之物件的索引鍵清單,不能為 Null。

傳回值

型別:System.Collections.Generic..::..IEnumerable<(Of <(<'KeyValuePair<(Of <(<'String, Object>)>)>>)>)>
傳回含有索引鍵與值組清單的 IEnumerable<(Of <(<'T>)>)> 物件。

Parameter validation behavior:

  • If a key is not present in the region, the object returned by the enumerator for the key will be null. For example, the key/value pair returned would be <key,null>.

Performance considerations - BulkGet improves performance when used with small objects, for example, when retrieving many objects of 1 - 5KB or less in size. When using BulkGet to retrieve large objects, for example objects larger than 64 KB, BulkGet will not significantly improve performance and in fact may adversely impact performance. This reduced performance can occur because large bulk get responses are split into multiple single object responses to avoid large object heap usage.

本文對您有任何幫助嗎?
(剩餘 1500 個字元)
感謝您提供意見

社群新增項目

新增
顯示:
© 2014 Microsoft. 著作權所有,並保留一切權利。