ShowCommandCommand.PassThru Property
Gets or sets a value that indicates whether to send the command to the pipeline as a string instead of running the command.
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Utility (in Microsoft.PowerShell.Commands.Utility.dll)
Usage
'Usage
Dim instance As ShowCommandCommand
Dim value As SwitchParameter
value = instance.PassThru
instance.PassThru = value
Syntax
'Declaration
<ParameterAttribute> _
Public Property PassThru As SwitchParameter
[ParameterAttribute]
public SwitchParameter PassThru { get; set; }
[ParameterAttribute]
public:
property SwitchParameter PassThru {
SwitchParameter get ();
void set (SwitchParameter value);
}
/** @property */
public SwitchParameter get_PassThru ()
/** @property */
public void set_PassThru (SwitchParameter value)
public function get PassThru () : SwitchParameter
public function set PassThru (value : SwitchParameter)
Property Value
A SwitchParameter: true if the command is sent to the pipeline as a string instead of being run; otherwise, false.
Remarks
This property represents the –PassThru
parameter in the Show-Command cmdlet.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
ShowCommandCommand Class
ShowCommandCommand Members
Microsoft.PowerShell.Commands Namespace