Språk

StringCollectionConverter.ConvertTo Metod

Definition

Konverterar ett objekt av typen StringCollection till en String eller 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

Parametrar

context
ITypeDescriptorContext

Ett objekt som tillhandahåller en formatkontext.

culture
CultureInfo

Objektet som ska användas som aktuell kultur.

value
Object

Att StringCollection konvertera.

destinationType
Type

Den typ som ska konverteras value till.

Returer

Det konverterade värdet.

Undantag

value är null.

-eller-

destinationType är null.

En NotSupportedException utlöses om exempelobjektet är null eller om destinationType inte är en av de giltiga måltyperna.

Gäller för