Retrieves the keys of items in a group or sub group.

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

Syntax

C#
public override ArrayList GetGroupKeys(
	string group,
	string subGroup
)
Visual Basic
Public Overrides Function GetGroupKeys ( _
	group As String, _
	subGroup As String _
) As ArrayList
Visual C++
public:
virtual ArrayList^ GetGroupKeys(
	String^ group, 
	String^ subGroup
) override

Parameters

group
Type: System..::..String
The group whose keys are to be returned.
subGroup
Type: System..::..String
The sub group of the group foe which keys are to be returned.

Return Value

The list of keys of a group or a sub group.

Remarks

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

Examples

The following example demonstrates how to retrieve the value cached for an ASP.NET text box server control.
CopyC#
ArrayList list = NCache.Cache.Get("Customer", "Orders");
Or simply in a class deriving from [!:Alachisoft.NCache.Web.UI.NPage] or [!:Alachisoft.NCache.Web.UI.NUserControl].
CopyC#
ArrayList list = Cache.Get("Customer", "Orders");

Exceptions

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

See Also