UriTypeConverter.ConvertTo Methode

Definitie

Converteert een bepaald 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

A CultureInfo. Als null deze wordt doorgegeven, wordt ervan uitgegaan dat de huidige cultuur wordt aangenomen.

value
Object

De Object te converteren.

destinationType
Type

De Type parameter die u wilt converteren value naar.

Retouren

Een Object die de geconverteerde waarde vertegenwoordigt.

Uitzonderingen

De destinationType parameter is null.

De conversie kan niet worden uitgevoerd.

Van toepassing op