Partilhar via


ConvertThroughString.ConvertTo(Object, Type, IFormatProvider, Boolean) Method

Definition

Throws NotSupportedException, since this converter is not designed to be used to convert from the type associated with the converted to other types.

public:
 override System::Object ^ ConvertTo(System::Object ^ sourceValue, Type ^ destinationType, IFormatProvider ^ formatProvider, bool 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

The value to convert from.

destinationType
Type

The value to convert from.

formatProvider
IFormatProvider

The IFormatProvider to use.

ignoreCase
Boolean

True if case should be ignored.

Returns

This method does not return a value.

Exceptions

NotSupportedException is always thrown.

Applies to