AddTypeCommand.PassThru Property
Gets and sets the value of the PassThru parameter of the Add-Type cmdlet. This property is introduced in Windows PowerShell 2.0.
Namespace: Microsoft.PowerShell.Commands
Assembly: Microsoft.PowerShell.Commands.Utility (in Microsoft.PowerShell.Commands.Utility.dll)
Usage
'Usage
Dim instance As AddTypeCommand
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
When specified, a Runtime object is returned that contains the results of the command. By default this cmdlet does not generate any output.
Remarks
This topic is included in this SDK for completeness only. For more information about this cmdlet, see Add-Type in the Microsoft TechNet Library.
For Help at the command line, type:
get-help add-type
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
AddTypeCommand Class
AddTypeCommand Members
Microsoft.PowerShell.Commands Namespace