JAMS Developer Guide
CanConvertFrom(ITypeDescriptorContext,Type) Method


MVPSI.JAMS Namespace > DeltaTimeConverter Class > CanConvertFrom Method : CanConvertFrom(ITypeDescriptorContext,Type) Method
The type that the caller wants to convert to a DeltaTime
Determines if a DeltaTime can be created from the specified type.
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 DeltaTimeConverter
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 that the caller wants to convert to a DeltaTime

Return Value

True if the type can be converted to a DeltaTime
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

DeltaTimeConverter Class
DeltaTimeConverter Members
Overload List