DurationConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

 

Converts a given string value to an instance of Duration.

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

public override object ConvertFrom(
	ITypeDescriptorContext td,
	CultureInfo cultureInfo,
	object value
)

Parameters

td
Type: System.ComponentModel.ITypeDescriptorContext

Context information used for conversion.

cultureInfo
Type: System.Globalization.CultureInfo

Cultural information that is respected during conversion.

value
Type: System.Object

String value to convert to an instance of Duration.

Return Value

Type: System.Object

A new instance of Duration.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: