Writes extended type view information
PowerShell has a robust, extensible types system. With Write-TypeView, you can easily add extended type information to any type. This can include: The default set of properties to display (-DefaultDisplay) Sets of properties to display (-PropertySet) Serialization Depth (-SerializationDepth) Virtual methods or properties to add onto the type (-ScriptMethod, -ScriptProperty and -NoteProperty) Method or property aliasing (-AliasProperty)
The name of the type. Multiple type names will all have the same methods, properties, events, etc.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String[]] |
true | 1 | true (ByPropertyName) |
A collection of virtual method names and the script blocks that will be used to run the virtual method.
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | named | false |
A Collection of virtual property names and the script blocks that will be used to get the property values.
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | named | false |
A collection of fixed property values.
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | named | false |
A collection of property aliases
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | named | false |
A collection of scripts that may create events. These will become ScriptMethods.
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | named | false |
A list of event names. These will become ScriptMethods.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String[]] |
false | named | false |
The default display. If only one propertry is used, this will set the default display property. If more than one property is used, this will set the default display member set.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String[]] |
false | named | false |
The ID property
Type | Required | Position | PipelineInput |
---|---|---|---|
[String] |
false | named | false |
The serialization depth. Serialization depth can be used to minimize the overhead of objects. If the type is deserialized, this is the depth of subpropeties that will be stored. For instance, a serialization depth of 3 would store:
The default serialization depth is 2.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Int32] |
false | named | false |
The reserializer type used for recreating a deserialized type. If none is provided, consider using -Deserialized
Type | Required | Position | PipelineInput |
---|---|---|---|
[Type] |
false | named | false |
Property sets define default views for an object. A property set can be used with Select-Object to display just that set of properties.
Type | Required | Position | PipelineInput |
---|---|---|---|
[IDictionary] |
false | named | false |
If provided, will hide any properties in the list from automatically being displayed.
Type | Required | Position | PipelineInput |
---|---|---|---|
[String[]] |
false | named | false |
If set, will generate an identical typeview for the deserialized form of each typename.
Type | Required | Position | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
Write-TypeView [-TypeName] <String[]> [-ScriptMethod <IDictionary>] [-ScriptProperty <IDictionary>] [-NoteProperty <IDictionary>] [-AliasProperty <IDictionary>] [-EventGenerator <IDictionary>] [-EventName <String[]>] [-DefaultDisplay <String[]>] [-IdProperty <String>] [-SerializationDepth <Int32>] [-Reserializer <Type>] [-PropertySet <IDictionary>] [-HideProperty <String[]>] [-Deserialized] [<CommonParameters>]