Dela via


JobTriggerToCimInstanceConverter.ConvertTo Method

Definition

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

The value to convert from

destinationType
Type

The type to convert to

formatProvider
IFormatProvider

The format provider to use like in IFormatable's ToString

ignoreCase
Boolean

true if case should be ignored

Returns

sourceValue converted to the destinationType parameter using formatProvider and ignoreCase

Exceptions

if no conversion was possible

Applies to