Compartilhar via


StringCollectionConverter.ConvertTo Método

Definição

Converte um objeto do tipo StringCollection em um String ou 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

Parâmetros

context
ITypeDescriptorContext

Um objeto que fornece um contexto de formato.

culture
CultureInfo

O objeto a ser usado como a cultura atual.

value
Object

O StringCollection a ser convertido.

destinationType
Type

O tipo no qual converter value.

Retornos

Object

O valor convertido.

Exceções

value é null.

- ou - destinationType é null.

Um NotSupportedException será gerado se o objeto de exemplo for nulo ou se o destinationType não for um dos tipos de destino válidos.

Aplica-se a