Windows Dev Center

TypeConverter.CanConvertFrom Method (Type)

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
)

Parameters

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

Show:
© 2015 Microsoft