Share via


ConvertThroughString.ConvertFrom Method

Definition

Converts to destinationType by first converting sourceValue to string and then converting the result to destinationType.

public:
 override System::Object ^ ConvertFrom(System::Object ^ sourceValue, Type ^ destinationType, IFormatProvider ^ formatProvider, bool ignoreCase);
public override object ConvertFrom (object sourceValue, Type destinationType, IFormatProvider formatProvider, bool ignoreCase);
override this.ConvertFrom : obj * Type * IFormatProvider * bool -> obj
Public Overrides Function ConvertFrom (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 type this converter is associated with.

formatProvider
IFormatProvider

The IFormatProvider to use.

ignoreCase
Boolean

True if case should be ignored.

Returns

SourceValue converted to destinationType.

Exceptions

When no conversion was possible.

Applies to