DirectoryAttributeCollection.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.

The OnValidate method verifies that value is a DirectoryAttribute object or specifies an add operation.

Namespace:   System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)

protected override void OnValidate(
	object value
)

Parameters

value
Type: System.Object

The object to evaluate.

Exception Condition
ArgumentException

This exception can occur under one of the following conditions:

  • value is a null reference (Nothing in Visual Basic).

  • value is not a DirectoryAttribute object.

.NET Framework
Available since 2.0
Return to top
Show: