Method GetGroupData
GetGroupData(String, String)
Retrieves the key and value pairs in a group or sub group.
Declaration
public virtual IDictionary GetGroupData(string group, string subGroup)
Parameters
Type | Name | Description |
---|---|---|
System.String | group | The group whose data is to be returned. |
System.String | subGroup | The sub group of the group for which data is to be returned. |
Returns
Type | Description |
---|---|
System.Collections.IDictionary | The list of key and value pairs of a group or a sub group. |
Remarks
If only group is specified, data for the group and all the sub groups of the group are returned. If both the group and sub group are specified. Only the data related to the sub group are returned.
Note: If exceptions are enabled through the ExceptionsEnabled setting, this property throws exception in case of failure.
Examples
The following example demonstrates how to retrieve the value cached for an ASP.NET text box server control.
Cache cache = NCache.InitializeCache("myCache");
Hashtable table = (Hashtable) cache.GetGroupData("Customer", "Orders");
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|