导出 (0) 打印
全部展开

BulkGet 方法 (IEnumerable(String))

注:本页面内容可能不完全适用中国大陆地区运营的 Windows Azure服务。如要了解不同地区 Windows Azure 服务的差异, 请参考本网站.

获取所有系统区域中与指定键关联的所有对象。此方法不搜索用户定义的区域。

命名空间:  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.

社区附加资源

添加
显示:
© 2015 Microsoft