Retrieves the keys of items in a group or sub group.
public virtual ArrayList GetGroupKeys(string group, string subGroup)
The group whose keys are to be returned.
The sub group of the group foe which keys are to be returned.
The list of keys of a group or a sub group.
If only group is specified, keys for the group and all the sub groups of the group are returned. If both the group and sub group are specified. Only the keys related to the sub group are returned.
Note: If exceptions are enabled through the ExceptionsEnabled setting, this property throws exception in case of failure.
The following example demonstrates how to retrieve the value cached for an ASP.NET text box server control.
Cache cache = NCache.InitializeCache("myCache"); ArrayList list = (ArrayList) cache.GetGroupKeys("Customer", "Orders");