DurationConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) DurationConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) DurationConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Method

定義

Duration のインスタンスを他の型に変換します。Converts an instance of Duration to another type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
[System.Security.SecurityCritical]
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj

パラメーター

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

変換のために使用されるコンテキスト情報。Context information used for conversion.

cultureInfo
CultureInfo CultureInfo CultureInfo

変換時に考慮されるカルチャ情報。Cultural information that is respected during conversion.

value
Object Object Object

変換前の Duration 値。Duration value to convert from.

destinationType
Type Type Type

変換の評価対象である型。Type being evaluated for conversion.

戻り値

destinationType の新しいインスタンス。A new instance of the destinationType.

注釈

destinationTypeにする必要があります。StringdestinationType must be String.

適用対象