Retrieves the key and value pairs in a group or sub group.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public virtual IDictionary GetGroupData(
	string group,
	string subGroup
)
Visual Basic
Public Overridable Function GetGroupData ( 
	group As String,
	subGroup As String
) As IDictionary
Visual C++
public:
virtual IDictionary^ GetGroupData(
	String^ group, 
	String^ subGroup
)

Parameters

group
Type: System..::..String
The group whose data is to be returned.
subGroup
Type: System..::..String
The sub group of the group for which data is to be returned.

Return Value

Type: 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 incase of failure.

Examples

The following example demonstrates how to retrieve the value cached for an ASP.NET text box server control.
 Copy imageCopy
Cache cache = NCache.InitializeCache("myCache");
Hashtable table = (Hashtable) cache.GetGroupData("Customer", "Orders");

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptiongroup contains a null reference (Nothing in Visual Basic).

See Also