Uredi

Deli z drugimi prek


DurationConverter.ConvertFrom 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
Public Overrides Function ConvertFrom (td As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object) As Object

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