Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft