DateTimeTypeConverter.CanConvertTo Method (ITypeDescriptorContext, Type)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets a value that indicates whether it is possible to convert a DateTime to the specified type within the specified format context.
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls (in System.Windows.Controls.dll)
Syntax
'Declaration
Public Overrides Function CanConvertTo ( _
context As ITypeDescriptorContext, _
destinationType As Type _
) As Boolean
public override bool CanConvertTo(
ITypeDescriptorContext context,
Type destinationType
)
Parameters
- context
Type: System.ComponentModel.ITypeDescriptorContext
The format context that is used to convert.
- destinationType
Type: System.Type
The type to convert to.
Return Value
Type: System.Boolean
true if the conversion is possible; otherwise, false.
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also