This topic has not yet been rated - Rate this topic

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)
'Usage
Dim arguments As Object
Dim engineIntrinsics As EngineIntrinsics

Me.Validate(arguments, engineIntrinsics)
protected abstract void Validate (
	Object arguments,
	EngineIntrinsics engineIntrinsics
)
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 typeCondition
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 Preview

Send comments about this topic to Microsoft.
© 2013 Microsoft. All rights reserved.