CommandGetCounter

Returns the total number of command uses, by ID

Signature

public int CommandGetCounter(string commandId)

Parameters

commandId
string required

No description provided.

Return Type

int

Example

using System;
public class CPHInline
{
    public bool Execute()
    {
        //Define string of commandId
        string commandId = "4fcc2d13-9bcf-4c18-9d91-821a15f4b6e5";
        //Get number of uses
        int numberOfUses = CPH.CommandGetCounter(commandId);         
        return true;
    }
}