Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft