Skip to content

Get FunctionDefinition

dfinke edited this page Apr 20, 2024 · 2 revisions

Get-FunctionDefinition

SYNOPSIS

Returns the definition of one or more PowerShell functions.

SYNTAX

Get-FunctionDefinition [[-FunctionInfo] <CommandInfo[]>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

The Get-FunctionDefinition function takes an array of CommandInfo objects representing PowerShell functions and returns their definitions as strings.

EXAMPLES

EXAMPLE 1

Get-FunctionDefinition (Get-Command Get-FunctionDefinition)

PARAMETERS

-FunctionInfo

An array of CommandInfo objects representing PowerShell functions.

Type: CommandInfo[]
Parameter Sets: (All)
Aliases:

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

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
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

OUTPUTS

NOTES

RELATED LINKS

Clone this wiki locally