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!

UnitConverter.CanConvertFrom

Returns whether or not the unit converter can convert from the specified source type.

[Visual Basic]
Overrides Public Function CanConvertFrom( _
   ByVal context As ITypeDescriptorContext, _
   ByVal sourceType As Type _
) As Boolean
[C#]
public override bool CanConvertFrom(
   ITypeDescriptorContext context,
   Type sourceType
);
[C++]
public: override bool CanConvertFrom(
   ITypeDescriptorContext* context,
   Type* sourceType
);
[JScript]
public override function CanConvertFrom(
   context : ITypeDescriptorContext,
   sourceType : Type
) : Boolean;

Parameters

context
An ITypeDescriptorContext that indicates the context of the object to test if able to convert from.
sourceType
[To be supplied.]

Return Value

true if the source type can be converted from, otherwise false.

See Also

UnitConverter Class | UnitConverter Members | System.Web.UI.Design Namespace