ValidateScriptAttribute(ScriptBlock) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ValidateScriptAttribute class.
public:
ValidateScriptAttribute(System::Management::Automation::ScriptBlock ^ scriptBlock);
public ValidateScriptAttribute (System.Management.Automation.ScriptBlock scriptBlock);
new System.Management.Automation.ValidateScriptAttribute : System.Management.Automation.ScriptBlock -> System.Management.Automation.ValidateScriptAttribute
Public Sub New (scriptBlock As ScriptBlock)
Parameters
- scriptBlock
- ScriptBlock
Scriptblock to match.
Exceptions
For invalid arguments.