DialogResultConverter.ConvertTo Methode

Definition

DialogResultConverter unterstützt nicht das Konvertieren aus anderen Typen in DialogResult (ein Nullable<T>-Wert des Typs Boolean).

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object, destinationType As Type) As Object

Parameter

typeDescriptorContext
ITypeDescriptorContext

Ein ITypeDescriptorContext, der einen Formatierungskontext bereitstellt.

cultureInfo
CultureInfo

Die CultureInfo, die als aktuelle Kultur verwendet werden sollen. Wenn null übergeben wird, wird von der aktuellen Kultur ausgegangen.

value
Object

Die zu konvertierende Object.

destinationType
Type

Der Type, in den der Wertparameter konvertiert werden soll.

Gibt zurück

Object

Löst immer InvalidOperationException aus.

Ausnahmen

Gilt für

Siehe auch