Export (0) Print
Expand All

DateTimeTypeConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

Silverlight

Gets a value that indicates whether it is possible to convert the specified type to a DateTime with the specified format context.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext
The format context that is used to convert the specified type.
sourceType
Type: System.Type
The type to convert.

Return Value

Type: System.Boolean
true if the conversion is possible; otherwise, false.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft