Skip to content

Measure ParameterBlockParameterAttribute

dscbot edited this page Oct 8, 2024 · 1 revision

Measure-ParameterBlockParameterAttribute

SYNOPSIS

Validates the [Parameter()] attribute for each parameter.

SYNTAX

Measure-ParameterBlockParameterAttribute [-ParameterAst] <ParameterAst> 
 [<CommonParameters>]

DESCRIPTION

All parameters in a param block must contain a [Parameter()] attribute and it must be the first attribute for each parameter and must start with a capital letter P.

EXAMPLES

EXAMPLE 1

Measure-ParameterBlockParameterAttribute -ParameterAst $parameterAst

PARAMETERS

-ParameterAst

{{ Fill ParameterAst Description }}

Type: ParameterAst
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

[System.Management.Automation.Language.ParameterAst]

OUTPUTS

[Microsoft.Windows.Powershell.ScriptAnalyzer.Generic.DiagnosticRecord[]]

NOTES

None

RELATED LINKS