DurationConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) DurationConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) DurationConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

定義

將指定的字串值轉換為 Duration 的執行個體。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

參數

td
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

用於轉換的內容資訊。Context information used for conversion.

cultureInfo
CultureInfo CultureInfo CultureInfo

轉換期間遵守的文化特性資訊。Cultural information that is respected during conversion.

value
Object Object Object

要轉換為 Duration 之執行個體的字串值。String value to convert to an instance of Duration.

傳回

Duration 的新執行個體。A new instance of Duration.

適用於