File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ RemoveParameter
3+ ---------------
4+ ### Synopsis
5+ Removes Parameters from a ScriptBlock
6+
7+ ---
8+ ### Description
9+
10+ Removes Parameters from a ScriptBlock
11+
12+ ---
13+ ### Related Links
14+ * [ Update-PipeScript] ( Update-PipeScript.md )
15+ ---
16+ ### Examples
17+ #### EXAMPLE 1
18+ ``` PowerShell
19+ {
20+ [RemoveParameter("x")]
21+ param($x, $y)
22+ } | .>PipeScript
23+ ```
24+
25+ ---
26+ ### Parameters
27+ #### ** ParameterName**
28+
29+ The name of one or more parameters to remove
30+
31+
32+
33+ | Type | Requried| Postion| PipelineInput|
34+ | ----------------| --------| -------| -------------|
35+ | ``` [String[]] ``` | true | 1 | false |
36+ ---
37+ #### ** ScriptBlock**
38+
39+ The ScriptBlock that declares the parameters.
40+
41+
42+
43+ | Type | Requried| Postion| PipelineInput |
44+ | -------------------| --------| -------| --------------|
45+ | ``` [ScriptBlock] ``` | true | named | true (ByValue)|
46+ ---
47+ ### Syntax
48+ ``` PowerShell
49+ RemoveParameter [-ParameterName] <String[]> -ScriptBlock <ScriptBlock> [<CommonParameters>]
50+ ```
51+ ---
52+
53+
You can’t perform that action at this time.
0 commit comments