DeserializingTypeConverter.ConvertTo DeserializingTypeConverter.ConvertTo DeserializingTypeConverter.ConvertTo Method

Definition

Overloads

ConvertTo(PSObject, Type, IFormatProvider, Boolean) ConvertTo(PSObject, Type, IFormatProvider, Boolean) ConvertTo(PSObject, Type, IFormatProvider, Boolean)

This method is not implemented - an overload taking a PSObject is implemented instead

ConvertTo(Object, Type, IFormatProvider, Boolean) ConvertTo(Object, Type, IFormatProvider, Boolean) ConvertTo(Object, Type, IFormatProvider, Boolean)

Converts the sourceValue parameter to the destinationType parameter using formatProvider and ignoreCase

ConvertTo(PSObject, Type, IFormatProvider, Boolean) ConvertTo(PSObject, Type, IFormatProvider, Boolean) ConvertTo(PSObject, Type, IFormatProvider, Boolean)

This method is not implemented - an overload taking a PSObject is implemented instead

public override object ConvertTo (System.Management.Automation.PSObject sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase);
override this.ConvertTo : System.Management.Automation.PSObject * Type * IFormatProvider * bool -> obj
Public Overrides Function ConvertTo (sourceValue As PSObject, destinationType As Type, formatProvider As IFormatProvider, ignoreCase As Boolean) As Object
Parameters
sourceValue
PSObject PSObject PSObject
destinationType
Type Type Type
ignoreCase
Boolean Boolean Boolean
Returns

ConvertTo(Object, Type, IFormatProvider, Boolean) ConvertTo(Object, Type, IFormatProvider, Boolean) ConvertTo(Object, Type, IFormatProvider, Boolean)

Converts the sourceValue parameter to the destinationType parameter using formatProvider and ignoreCase

public override object ConvertTo (object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase);
override this.ConvertTo : obj * Type * IFormatProvider * bool -> obj
Public Overrides Function ConvertTo (sourceValue As Object, destinationType As Type, formatProvider As IFormatProvider, ignoreCase As Boolean) As Object
Parameters
sourceValue
Object Object Object

The value to convert from

destinationType
Type Type Type

The type to convert to

formatProvider
IFormatProvider IFormatProvider IFormatProvider

The format provider to use like in IFormattable's ToString

ignoreCase
Boolean Boolean Boolean

true if case should be ignored

Returns

sourceValue converted to the destinationType parameter using formatProvider and ignoreCase

Exceptions

Applies to