< Back

Get-PSFCallback

Sun Jan 19, 2020 6:39 pm

NAME Get-PSFCallback



SYNOPSIS

Returns a list of callback scripts.





SYNTAX

Get-PSFCallback [[-Name] <String[]>] [-All] [<CommonParameters>]





DESCRIPTION

Returns a list of callback scripts.

Use Register-PSFCallback to register new callback scripts.

Use Unregister-PSFCallback to remove callback scripts.

Use Invoke-PSFCallback within a function of your module to execute all registered callback scripts that apply.





PARAMETERS

-Name <String[]>

The name to filter by.



Required? false

Position? 1

Default value *

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-All [<SwitchParameter>]

Return all callback scripts, even those specific to other runspaces.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

PSFramework.FlowControl.Callback





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-PSFCallback



Returns all callback scripts relevant to the current runspace.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-PSFCallback -All



Returns all callback scripts in the entire process.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-PSFCallback -Name MyModule.Configuration



Returns the callback script named 'MyModule.Configuration'











RELATED LINKS