CounterCreationDataCollection::OnValidate Method (Object^)

 

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

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

protected:
virtual void OnValidate(
	Object^ value
) override

Parameters

value
Type: System::Object^

The object that will be validated.

Exception Condition
ArgumentNullException

value is null.

ArgumentException

value is not a CounterCreationData object.

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

.NET Framework
Available since 2.0
Return to top
Show: