• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Method GetGroupKeys

GetGroupKeys(String)

Retrieves the keys of the items in the specified group.

Declaration
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.

Back to top Copyright © 2017 Alachisoft