Gets the statistic definitions for a specific category.

Namespace: ININ.IceLib.Statistics
Assembly: ININ.IceLib.Statistics (in ININ.IceLib.Statistics.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public ReadOnlyCollection<StatisticDefinition> GetStatisticDefinitions(
	string categoryId
)
Visual Basic
Public Function GetStatisticDefinitions ( _
	categoryId As String _
) As ReadOnlyCollection(Of StatisticDefinition)

Parameters

categoryId
Type: System..::..String
The category ID.

Return Value

A list of statistic definitions.

Remarks

This method is only valid after a StartWatching has been invoked.

Examples

The IceLib SDK includes example application references to the GetStatisticDefinitions method (or a variation). Some examples are listed below.
ProjectLocation
TutorialExampleSystemStatisticsViewModel.cs, line 111, in SystemStatisticsViewModel.StartWatchingCatalogCompleted
StatisticCatalogViewModel.cs, line 109, in StatisticCatalogViewModel.set_SelectedStatisticCategory

Exceptions

ExceptionCondition
System..::..InvalidOperationExceptionA watch was not started.
System..::..ArgumentNullExceptioncategoryId is nullNothingnullptra null reference (Nothing in Visual Basic).

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.

See Also