Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ValidateScriptAttribute Constructor

Initializes a new instance of the ValidateScriptAttribute class that contains the script that is used to validate the parameter argument. This constructor is introduced by Windows PowerShell 2.0.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)
'Usage
Dim scriptBlock As ScriptBlock

Dim instance As New ValidateScriptAttribute(scriptBlock)
public ValidateScriptAttribute (
	ScriptBlock scriptBlock
)
public ValidateScriptAttribute (
	ScriptBlock scriptBlock
)
public function ValidateScriptAttribute (
	scriptBlock : ScriptBlock
)

Parameters

scriptBlock

The script that is used to validate the parameter argument. The argument of the parameter is valid only when the script returns true.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.