ValidateScriptAttribute Class

Definition

Class for validating against a script block.

public sealed class ValidateScriptAttribute : System.Management.Automation.ValidateEnumeratedArgumentsAttribute
Inheritance

Inherited Members

System.Management.Automation.ValidateEnumeratedArgumentsAttribute

Constructors

ValidateScriptAttribute(ScriptBlock)

Initializes a new instance of the ValidateScriptBlockAttribute class

Properties

ScriptBlock

Gets the scriptblock to be used in the validation