@@ -260,8 +260,8 @@ To specify what goes into the table view - use the **ScriptBlock** attribute pro
260
260
{
261
261
// code omitted for brevity
262
262
263
- [Ps1Xml (Label = " AccountId " , Target = ViewControl .Table , ScriptBlock = " $_.Account.Id" )]
264
- [Ps1Xml (Label = " AccountType " , Target = ViewControl .Table , ScriptBlock = " $_.Account.Type" )]
263
+ [Ps1Xml (Label = " Account.Id " , Target = ViewControl .Table , ScriptBlock = " $_.Account.Id" )]
264
+ [Ps1Xml (Label = " Account.Type " , Target = ViewControl .Table , ScriptBlock = " $_.Account.Type" )]
265
265
public IAzureAccount Account { get ; set ; }
266
266
267
267
// code omitted for brevity
@@ -272,8 +272,8 @@ Note: **$_** symbol in PowerShell means the same as **this** key word means in C
272
272
273
273
These two attribute will result in 2 column in the table view:
274
274
```Ps
275
- Account Id Account Type
276
- ========== ============
275
+ Account. Id Account. Type
276
+ ========== ============
277
277
```
278
278
## GroupBy a property.
279
279
@@ -361,13 +361,13 @@ This will place the column at the very beginning of the table.
361
361
```Powershell
362
362
PS E:\git\azure-powershell> New-FormatPs1Xml -OnlyMarkedProperties -ModulePath .\artifacts\Debug\Az.Storage\Az.Storage.psd1
363
363
E:\git\azure-powershell\Microsoft.Azure.PowerShell.Cmdlets.Storage.Management.generated.format.ps1xml
364
- E:\git\psxml\ azure-powershell\Microsoft.Azure.PowerShell.Cmdlets.Storage.generated.format.ps1xml
364
+ E:\git\azure-powershell\Microsoft.Azure.PowerShell.Cmdlets.Storage.generated.format.ps1xml
365
365
```
366
366
* Below is an example of how to generate a format.ps1xml file for the ```Az.Account``` module:
367
367
```powershell
368
368
PS E:\git\azure-powershell> New-FormatPs1Xml -OnlyMarkedProperties -ModulePath .\artifacts\Debug\Az.Accounts\Az.Accounts.psd1
369
369
E:\git\azure-powershell\Microsoft.Azure.PowerShell.Cmdlets.Accounts.generated.format.ps1xml
370
- PS E:\git\psxml\ azure-powershell>
370
+ PS E:\git\azure-powershell>
371
371
```
372
372
373
373
# How to test the format.ps1xml file.
0 commit comments