CounterCreationDataCollection.OnValidate Method (Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

protected override void OnValidate(
	object value
)

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: