GenericEnumConverter.ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) Método
Definição
public:
override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ ctx, System::Globalization::CultureInfo ^ ci, System::Object ^ value, Type ^ type);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext ctx, System.Globalization.CultureInfo ci, object value, Type type);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (ctx As ITypeDescriptorContext, ci As CultureInfo, value As Object, type As Type) As Object
Parâmetros
O objeto ITypeDescriptorContext usado para conversões de tipo.The ITypeDescriptorContext object used for type conversions.
- ci
- CultureInfo
O objeto CultureInfo usado durante a conversão.The CultureInfo object used during conversion.
- value
- Object
O valor para o qual será convertido.The value to convert to.
- type
- Type
O tipo para o qual converter.The type to convert to.
Retornos
O String que representa o parâmetro value.The String that represents the value parameter.
Comentários
O sistema usa o ConvertTo método quando ele grava em um arquivo de configuração para converter um Enum tipo em um String valor.The system uses the ConvertTo method when it writes to a configuration file to convert a Enum type to a String value.