ValidateEnumeratedArgumentsAttribute.Validate Method

Validates the specified enumerated arguments by calling ValidateArgumentsAttribute.Validate for each argument.


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 override sealed void Validate (
	Object arguments,
	EngineIntrinsics engineIntrinsics
)
protected final void Validate (
	Object arguments, 
	EngineIntrinsics engineIntrinsics
)
protected override final function Validate (
	arguments : Object, 
	engineIntrinsics : EngineIntrinsics
)

Parameters

arguments

The object that contains the arguments.

engineIntrinsics

An EngineIntrinsics object that exposes classes for the current instance of the runtime.

Exception typeCondition
ValidationMetadataException

A validation failure has occurred.

This method is overridden by all argument validation attribute classes that are provided by Windows PowerShell and should also be overridden by any custom attribute derived from this 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.
Show:
© 2014 Microsoft