DurationConverter.ConvertTo Methode

Definition

Konvertiert eine Instanz von Duration einem 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

Kontextinformationen, die für die Konvertierung verwendet werden.

cultureInfo
CultureInfo

Kulturelle Informationen, die bei der Umwandlung beachtet werden.

value
Object

Dauerwert, aus dem konvertiert werden soll.

destinationType
Type

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: