JAMS Developer Guide
CanConvertFrom(ITypeDescriptorContext,Type) Method


MVPSI.JAMS Namespace > TimeOfDayConverter Class > CanConvertFrom Method : CanConvertFrom(ITypeDescriptorContext,Type) Method
THe Type to be converted.
Returns true if the passed source Type can be converted into a TimeOfDay.
Syntax
'Declaration
 
Public Overloads Overrides Function CanConvertFrom( _
   ByVal context As System.ComponentModel.ITypeDescriptorContext, _
   ByVal sourceType As System.Type _
) As System.Boolean
'Usage
 
Dim instance As TimeOfDayConverter
Dim context As System.ComponentModel.ITypeDescriptorContext
Dim sourceType As System.Type
Dim value As System.Boolean
 
value = instance.CanConvertFrom(context, sourceType)
public override System.bool CanConvertFrom( 
   System.ComponentModel.ITypeDescriptorContext context,
   System.Type sourceType
)

Parameters

context
sourceType
THe Type to be converted.

Return Value

True if the conversion can be done.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TimeOfDayConverter Class
TimeOfDayConverter Members
Overload List