DialogResultConverter.ConvertTo Metod

Definition

DialogResultConverter stöder inte konvertering från andra typer till DialogResult (ett Nullable<T> värde av typen 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

Parametrar

typeDescriptorContext
ITypeDescriptorContext

En ITypeDescriptorContext som ger en formatkontext.

cultureInfo
CultureInfo

Att CultureInfo använda som den aktuella kulturen. Om null skickas antas den aktuella kulturen.

value
Object

Att Object konvertera.

destinationType
Type

Att Type konvertera värdeparametern till.

Returer

Höjer InvalidOperationExceptionalltid .

Undantag

Gäller för

Se även