Skip to content

Commit 7d6eaaf

Browse files
corbobTylerLeonhardt
authored andcommitted
Add Calculated Property (#1293)
Add Calculated Property for use in select statements. Always forgetting the syntax for this.
1 parent c79f559 commit 7d6eaaf

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/community_snippets.md

+17
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,29 @@ _To contribute, check out our [guide here](#contributing)._
1616

1717
| Table of Contents |
1818
|:-----------------:|
19+
| [CalculatedProperty](#calculatedproperty): _Create a calculated property for use in a select-object call by @corbob_ |
1920
| [PSCustomObject](#pscustomobject): _A simple PSCustomObject by @brettmillerb_ |
2021
| [DateTimeWriteVerbose](#datetimewriteverbose): _Write-Verbose with the time and date pre-pended to your message by @ThmsRynr_ |
2122
| [Parameter-Credential](#parameter-credential): _Add a standard credential parameter to your function by @omniomi_ |
2223

2324
## Snippets
2425

26+
### CalculatedProperty
27+
28+
Create calculated property for use in Select Statements
29+
30+
#### Snippet
31+
32+
```json
33+
"Add Calculated Property": {
34+
"prefix": "cf",
35+
"body": [
36+
"@{'Name' = '$1' ; 'Expression' = {$2}}",
37+
],
38+
"description": "Create calculated property for use in Select Statements"
39+
}
40+
```
41+
2542
### PSCustomObject
2643

2744
A simple PSCustomObject by @brettmillerb. It has 4 properties that you can tab through to quickly fill in.

0 commit comments

Comments
 (0)