TypeConverter.CanConvertFrom Method (Type)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

public bool CanConvertFrom(
	Type sourceType


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

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 (CanConvertFrom(ITypeDescriptorContext, Type)) passing a null for context.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2015 Microsoft