TypeConverter.CanConvertTo Method (Type)

July 28, 2014

Returns whether the type converter can convert an object to the specified type.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public bool CanConvertTo(
	Type destinationType
)

Parameters

destinationType
Type: System.Type
The type you want to convert to.

Return Value

Type: System.Boolean
true if this converter can perform the conversion; otherwise, false.

Notes to Implementers

The base implementation calls the other signature (CanConvertTo(ITypeDescriptorContext, Type)) passing a null context.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft