Skip to content

Out-PodeVariable

SYNOPSIS

Defines variables to be created when the Pode server stops.

SYNTAX

Out-PodeVariable -Name <String> [[-Value] <Object>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Allows you to define a variable, with a value, that should be created on the in the main scope after the Pode server is stopped.

EXAMPLES

EXAMPLE 1

Out-PodeVariable -Name ExampleVar -Value @{ Name = 'Bob' }

PARAMETERS

-Name

The Name of the variable to be set

Type: String
Parameter Sets: (All)
Aliases:

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

-Value

The Value of the variable to be set

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
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