ValidateArgumentsAttribute.Validate(Object, EngineIntrinsics) Method

Definition

Verify that the value of arguments is valid.

protected:
 abstract void Validate(System::Object ^ arguments, System::Management::Automation::EngineIntrinsics ^ engineIntrinsics);
protected abstract void Validate (object arguments, System.Management.Automation.EngineIntrinsics engineIntrinsics);
abstract member Validate : obj * System.Management.Automation.EngineIntrinsics -> unit
Protected MustOverride Sub Validate (arguments As Object, engineIntrinsics As EngineIntrinsics)

Parameters

arguments
Object

Argument value to validate.

engineIntrinsics
EngineIntrinsics

The engine APIs for the context under which the prerequisite is being evaluated.

Exceptions

Should be thrown for any validation failure.

Remarks

Validate that the value of arguments is valid, and throw ValidationMetadataException if it is invalid.

Applies to