CounterName Property

Gets or sets the name of the custom counter.
Namespace: System.DiagnosticsAssembly: System in (System.dll)

Syntax

public string CounterName {
        get;
        set;
        }

Exceptions

Exception Condition
System.ArgumentException The specified value is not between 1 and 80 characters long or contains double quotes, control characters or leading or trailing spaces.
System.ArgumentNullException The specified value is null.