NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TypeConverter.CanConvertFrom

Gets a value indicating whether this converter can convert an object in the given source type to the native type of the converter.

Overload List

Determines if this converter can convert an object in the given source type to the native type of the 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;

Gets a value indicating whether this converter can convert an object in the given source type to the native type of the converter using the context.

[Visual Basic] Overloads Overridable Public 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