Skip to content

Measure ParameterBlockMandatoryNamedArgument

dscbot edited this page Oct 8, 2024 · 1 revision

Measure-ParameterBlockMandatoryNamedArgument

SYNOPSIS

Validates use of the Mandatory named argument within a Parameter attribute.

SYNTAX

Measure-ParameterBlockMandatoryNamedArgument [-NamedAttributeArgumentAst] <NamedAttributeArgumentAst>
 [<CommonParameters>]

DESCRIPTION

If a parameter attribute contains the mandatory attribute the mandatory attribute must be formatted correctly.

EXAMPLES

EXAMPLE 1

Measure-ParameterBlockMandatoryNamedArgument -NamedAttributeArgumentAst $namedAttributeArgumentAst

PARAMETERS

-NamedAttributeArgumentAst

{{ Fill NamedAttributeArgumentAst Description }}

Type: NamedAttributeArgumentAst
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.NamedAttributeArgumentAst]

OUTPUTS

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

NOTES

None

RELATED LINKS