File tree Expand file tree Collapse file tree 1 file changed +26
-10
lines changed
Expand file tree Collapse file tree 1 file changed +26
-10
lines changed Original file line number Diff line number Diff line change 11ValidateExtension
22-----------------
3+
4+
5+
6+
37### Synopsis
48Validates Extensions
59
10+
11+
612---
13+
14+
715### Description
816
917Validates that a parameter or object has one or more extensions.
1018
1119This creates a [ ValidatePattern] that will ensure the extension matches.
1220
21+
22+
1323---
24+
25+
1426### Examples
1527#### EXAMPLE 1
1628``` PowerShell
@@ -42,49 +54,53 @@ $FilePath
4254```
4355$FilePath
4456} -Parameter @{FilePath="foo.txt"}
57+
58+
4559---
60+
61+
4662### Parameters
4763#### ** Extension**
4864
4965The extensions being validated.
5066
5167
5268
53- > ** Type** : ``` [String[]] ```
5469
55- > ** Required** : true
5670
57- > ** Position** : 1
5871
59- > ** PipelineInput** : false
72+ | Type | Required| Position| PipelineInput|
73+ | ------------| --------| --------| -------------|
74+ | ` [String[]] ` | true | 1 | false |
6075
6176
6277
63- ---
6478#### ** VariableAST**
6579
6680A variable expression.
6781If this is provided, will apply a ``` [ValidatePattern({})] ``` attribute to the variable, constraining future values.
6882
6983
7084
71- > ** Type** : ``` [VariableExpressionAst] ```
7285
73- > ** Required** : false
7486
75- > ** Position** : named
7687
77- > ** PipelineInput** : true (ByValue)
88+ | Type | Required| Position| PipelineInput |
89+ | -------------------------| --------| --------| --------------|
90+ | ` [VariableExpressionAst] ` | false | named | true (ByValue)|
91+
92+
7893
7994
8095
8196---
97+
98+
8299### Syntax
83100``` PowerShell
84101ValidateExtension [-Extension] <String[]> [<CommonParameters>]
85102```
86103``` PowerShell
87104ValidateExtension [-Extension] <String[]> [-VariableAST <VariableExpressionAst>] [<CommonParameters>]
88105```
89- ---
90106
You can’t perform that action at this time.
0 commit comments