PSTypeConverter.ConvertTo Method

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Converter an object to a specific destination type. The variants of this method can convert an Object object and a PSObject object.

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

NameDescription
System_CAPS_pubmethodConvertTo(Object, Type, IFormatProvider, Boolean)

Converts an Object object to the specified destination object type.

System_CAPS_pubmethodConvertTo(PSObject, Type, IFormatProvider, Boolean)

Converts a PSObject object to the specified destination object type.

Return to top

Community Additions

ADD
Show: