You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wepresumethatforthe [outputtype](https://github.com/Azure/azure-powershell/blob/preview/documentation/development-docs/azure-powershell-design-guidelines.md#output-type) you created a new class that, for example, wraps a returning .NET SDK type, rather to use PSObject.
118
+
Wepresumethatforthe [outputtype](https://github.com/Azure/azure-powershell/blob/preview/documentation/development-docs/azure-powershell-design-guidelines.md#output-type) you created a new class that, for example, wraps a returning .NET SDK type, rather than PSObject.
117
119
118
120
---
119
121
@@ -153,7 +155,6 @@ Let's say for our example we want to only show these parameters in the output:
153
155
* Id
154
156
* Name
155
157
* State
156
-
* SubscriptionId
157
158
* TenantId
158
159
159
160
We just need to add the Ps1Xml attribute to the selected properties:
* The column order in the output table will be the same as the order of the properties in the class:
210
+
```
211
+
Id Name State TenantId
212
+
== ==== ===== ========
213
+
```
214
+
* If **Label** is not specified - the property name will be used.
208
215
209
-
Since the **Ps1Xml attribute** definition is located in the [Commands.Common](https://github.com/Azure/azure-powershell/tree/preview/src/Common/Commands.Common) project and the Command.Common project is likely referenced from your project - to make the attribute visible - you only need to add ```using Microsoft.WindowsAzure.Commands.Common.Attributes;``` statement.
216
+
* Since the **Ps1Xml attribute** definition is located in the [Commands.Common](https://github.com/Azure/azure-powershell/tree/preview/src/Common/Commands.Common) project and the Command.Common project is likely referenced from your project - to make the attribute visible - you only need to add ```using Microsoft.WindowsAzure.Commands.Common.Attributes;``` statement.
**Note:** All the paths used in the example in the section are under **_azure-powershell/src/Package/Debug_**
262
269
263
-
1. **Copy** the generated format.ps1xml file to the built module folder (thisiswhereyourmodulemanifestfilepsd1islocated). In our example the module folder is
270
+
1. **Copy** the generated format.ps1xml file to the built module folder (this is where your module manifest file psd1 is located). In our example the module folder is
0 commit comments