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:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ td,
	CultureInfo^ cultureInfo,
	Object^ value
) override

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: