NullableConverter.ConvertTo Methode

Definitie

Converteert het opgegeven waardeobject naar het opgegeven type, met behulp van de opgegeven context- en cultuurgegevens.

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

Parameters

context
ITypeDescriptorContext

Een ITypeDescriptorContext die een indelingscontext biedt.

culture
CultureInfo

De CultureInfo te gebruiken als de huidige cultuur.

value
Object

De Object te converteren.

destinationType
Type

De Type parameter voor het converteren van de waarde naar.

Retouren

Een Object die de geconverteerde waarde vertegenwoordigt.

Uitzonderingen

destinationType is null.

De conversie kan niet worden uitgevoerd.

Van toepassing op