InfiniteTimeSpanConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Método
Definição
public:
override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ ctx, System::Globalization::CultureInfo ^ ci, System::Object ^ data);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext ctx, System.Globalization.CultureInfo ci, object data);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (ctx As ITypeDescriptorContext, ci As CultureInfo, data As Object) 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.
Retornos
O MaxValue, se o parâmetro data é a String infinite; caso contrário, o TimeSpan que representa o valor do parâmetro data em minutos.The MaxValue, if the data parameter is the String infinite; otherwise, the TimeSpan representing the data parameter in minutes.
Comentários
O sistema usa o ConvertFrom método ao ler de um arquivo de configuração para converter um String valor TimeSpan ou String "infinito" em MaxValue .The system uses the ConvertFrom method when reading from a configuration file to convert a String value to TimeSpan or the String "infinite" to MaxValue.