System.Diagnostics.CounterCreationDataCollection.OnValidate Method

Checks the specified object to determine whether it is a valid System.Diagnostics.CounterCreationData type.

Syntax

protected override void OnValidate (object value)

Parameters

value
The object that will be validated.

Remarks

The CounterCreationDataCollection.OnValidate(object) method determines whether the object specified in the value parameter is a System.Diagnostics.CounterCreationData instance. If not, it throws an ArgumentException.

Requirements

Namespace: System.Diagnostics
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0