Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TypeConverter.CanConvertFrom Method

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

Overload List

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

[Visual Basic] Overloads Public Function CanConvertFrom(Type) As Boolean
[C#] public bool CanConvertFrom(Type);
[C++] public: bool CanConvertFrom(Type*);
[JScript] public function CanConvertFrom(Type) : Boolean;

Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.

[Visual Basic] Overloads Public Overridable Function CanConvertFrom(ITypeDescriptorContext, Type) As Boolean
[C#] public virtual bool CanConvertFrom(ITypeDescriptorContext, Type);
[C++] public: virtual bool CanConvertFrom(ITypeDescriptorContext*, Type*);
[JScript] public function CanConvertFrom(ITypeDescriptorContext, Type) : Boolean;

See Also

TypeConverter Class | TypeConverter Members | System.ComponentModel Namespace

Show:
© 2014 Microsoft