< Back
Get-PSFDynamicContentObject
Post
NAME Get-PSFDynamicContentObject
SYNOPSIS
Retrieves a named value object that can be updated from another runspace.
SYNTAX
Get-PSFDynamicContentObject [-Name] <String[]> [<CommonParameters>]
DESCRIPTION
Retrieves a named value object that can be updated from another runspace.
This comes in handy to have a variable that is automatically updated.
Use this function to receive an object under a given name.
Use Set-PSFDynamicContentObject to update the value of the object.
It matters not from what runspace you update the object.
Note:
When planning to use such an object, keep in mind that it can easily change its content at any given time.
PARAMETERS
-Name <String[]>
The name of the object to retrieve.
Will create an empty value object if the object doesn't already exist.
Required? true
Position? 1
Default value
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.Utility.DynamicContentObject
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PSFDynamicContentObject -Name "Test"
Returns the Dynamic Content Object named "test"
RELATED LINKS
SYNOPSIS
Retrieves a named value object that can be updated from another runspace.
SYNTAX
Get-PSFDynamicContentObject [-Name] <String[]> [<CommonParameters>]
DESCRIPTION
Retrieves a named value object that can be updated from another runspace.
This comes in handy to have a variable that is automatically updated.
Use this function to receive an object under a given name.
Use Set-PSFDynamicContentObject to update the value of the object.
It matters not from what runspace you update the object.
Note:
When planning to use such an object, keep in mind that it can easily change its content at any given time.
PARAMETERS
-Name <String[]>
The name of the object to retrieve.
Will create an empty value object if the object doesn't already exist.
Required? true
Position? 1
Default value
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.Utility.DynamicContentObject
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PSFDynamicContentObject -Name "Test"
Returns the Dynamic Content Object named "test"
RELATED LINKS