Dim instance As ParameterAttribute Dim value As Boolean value = instance.ValueFromPipeline instance.ValueFromPipeline = value
Public Property ValueFromPipeline As Boolean
public bool ValueFromPipeline { get; set; }
public: property bool ValueFromPipeline { bool get (); void set (bool value); }
/** @property */ public boolean get_ValueFromPipeline () /** @property */ public void set_ValueFromPipeline (boolean value)
public function get ValueFromPipeline () : boolean public function set ValueFromPipeline (value : boolean)
This example shows how the Parameter attribute is used to declare a parameter that accepts input from incoming pipeline objects.
[Parameter(ValueFromPipeline=true)] public string UserName { get { return userName; } set { userName = value; } } private string userName;
This property is an optional Named parameter of the Parameter attribute. For more information about the declaration syntax that is used to specify the Parameter attribute for cmdlets, see ParameterAttribute Declaration.