DurationConverter.ConvertTo Methode

Definition

Konvertiert eine Instanz von Duration in einen anderen Typ.

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);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
[<System.Security.SecurityCritical>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object, destinationType As Type) As Object

Parameter

context
ITypeDescriptorContext

Die für die Konvertierung verwendeten Kontextinformationen.

cultureInfo
CultureInfo

Kulturinformationen, die während der Konvertierung beachtet werden.

value
Object

Wert für die Dauer, aus dem konvertiert werden soll.

destinationType
Type

Der Typ, der für die Konvertierung ausgewertet wird.

Gibt zurück

Eine neue Instanz der destinationType.

Attribute

Hinweise

destinationType muss den Wert String haben.

Gilt für: