DurationConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

Definition

Converts a given string value to an instance of Duration.

public:
 override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ td, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext td, System.Globalization.CultureInfo cultureInfo, object value);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj

Parameters

td
ITypeDescriptorContext

Context information used for conversion.

cultureInfo
CultureInfo

Cultural information that is respected during conversion.

value
Object

String value to convert to an instance of Duration.

Returns

A new instance of Duration.

Applies to