< Back

Set-PodeState

Sat Jan 18, 2020 7:19 pm

NAME Set-PodeState



SYNOPSIS

Sets an object within the shared state.





SYNTAX

Set-PodeState [-Name] <String> [[-Value] <Object>] [<CommonParameters>]





DESCRIPTION

Sets an object within the shared state.





PARAMETERS

-Name <String>

The name of the state object.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Value <Object>

The value to set in the state.



Required? false

Position? 2

Default value

Accept pipeline input? true (ByValue)

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

System.Object





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



PS C:\\>Set-PodeState -Name 'Data' -Value @{ 'Name' = 'Rick Sanchez' }















RELATED LINKS