This documentation is archived and is not being maintained.

ObjectCache.GetValues Method (String, String[])

Gets a set of cache entries that correspond to the specified keys.

Namespace:  System.Runtime.Caching
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

public virtual IDictionary<string, Object> GetValues(
	string regionName,
	params string[] keys
)

Parameters

regionName
Type: System.String
Optional. A named region in the cache to which the cache entry or entries were added, if regions are implemented. Because regions are not implemented in .NET Framework 4, the default is null.
keys
Type: System.String[]
A collection of unique identifiers for the cache entries to get.

Return Value

Type: System.Collections.Generic.IDictionary<String, Object>
A dictionary of key/value pairs that represent cache entries.

The ObjectCache.GetValues method overload is like the GetValues(IEnumerable<String>, String) method overload, but lets you pass the named region by using optional parameter syntax that is supported by managed languages such as C#.

This method is a virtual method because the ObjectCache class provides a default implementation that passes the params array to the GetValues(IEnumerable<String>, String) method overload.

.NET Framework

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: