PSTypeConverter Constructor ()


Updated: April 27, 2016

Applies To: Windows PowerShell

Creates a new PSTypeConverter object.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

protected PSTypeConverter()

A Windows PowerShell type converter is needed when Windows PowerShell cannot perform a type conversion for a specific target class by using the standard Windows PowerShell language converters. For more information about the standard Windows PowerShell language converters and the Windows PowerShell type converter, see ETS Type Conversion [ps].

There are two ways of associating the implementation of the PSTypeConverter class with its target class:

  • Through the type configuration file.

  • By applying the TypeConverterAttribute attribute to the target class.

Return to top

Community Additions