Home > Contents > Index >
ICS.SetCounter
Creates a counter, or changes the value of an existing counter.
Syntax
public void SetCounter(String counter, int value) throws ExceptionParameters
counter
- Counter name to set.
value
- The value to set the counter to.
Throws
Exception if failure.
Example
The following example creates a counter:
try
{
ics.SetCounter("newCounter", 1);
}
catch(Exception e)
{
//handle exception
}See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.