Method GetGroupKeys
GetGroupKeys(String)
Retrieves the keys of the items in the specified group.
Declaration
[Obsolete("This API is deprecated and will be removed in a future release. This feature is being retired and will not be continued in future versions.", false)]
ICollection<string> GetGroupKeys(string group)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | group | Name of group whose keys are to be returned. |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<System.String> | The list of keys of the group. |
Examples
The following example demonstrates how to retrieve key list against group.
ICache cache = CacheManager.GetCache("demoCache");
ICollection<string> keys = cache.SearchService.GetGroupKeys("group_name");
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Group contains a null reference. |