StringCollectionConverter.ConvertTo Methode

Definitie

Converteert een object van het type StringCollection naar een String of InstanceDescriptor.

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);
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 object dat een indelingscontext biedt.

culture
CultureInfo

Het object dat moet worden gebruikt als de huidige cultuur.

value
Object

De StringCollection te converteren.

destinationType
Type

Het type dat u wilt converteren value naar.

Retouren

De geconverteerde waarde.

Uitzonderingen

value is null.

– of –

destinationType is null.

Er wordt een NotSupportedException gegenereerd als het voorbeeldobject null is of als het destinationType geen van de geldige doeltypen is.

Van toepassing op