다음을 통해 공유


ValidateScriptAttribute(ScriptBlock) Constructor

Definition

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.

Applies to