ValidateArgumentsAttribute.Validate Method
When overridden in a derived class, validates an argument value.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
protected abstract void Validate ( Object arguments, EngineIntrinsics engineIntrinsics )
protected abstract function Validate ( arguments : Object, engineIntrinsics : EngineIntrinsics )
Parameters
- arguments
The object to be validated.
- engineIntrinsics
An EngineIntrinsics object that exposes the engine functionality (classes for the current instance of the Windows PowerShell runtime).
| Exception type | Condition |
|---|---|
| ValidationMetadataException | A validation failure has occurred. |
This method is overridden by all validation attribute classes provided by Windows PowerShell, and it should also be overridden by any custom attribute class that derives from this class. Be aware that this method is protected, which means that an override of this method, in a derived class, cannot be called from outside of that derived class.
Any public static (
Shared
in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Target Platforms
Windows Developer Preview, Windows Server Developer PreviewSend comments about this topic to Microsoft.
