PowerShell Troubleshooting Guide by Michael Shepard

PowerShell Troubleshooting Guide by Michael Shepard

Author:Michael Shepard
Language: eng
Format: mobi, azw3
Publisher: Packt Publishing
Published: 2014-11-27T22:00:00+00:00


Parameter value validation

In addition to validating the names of parameters, using CmdletBinding() allows us to provide several types of validation rules for values of parameters. Validation rules enable us to provide checks that are performed by the parameter binding engine that specify when values are appropriate or not for the function. These parameter checking attributes can be divided into two groups: requirement validation and value checking. Requirement checking indicates whether the parameter is required or if various types of empty values are allowed. These attributes include the following:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.