InfiniteTimeSpanConverter.ConvertTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
The ITypeDescriptorContext object used for type conversions.
- ci
- CultureInfo
The CultureInfo used during object conversion.
- value
- Object
The value to convert.
- type
- Type
The conversion type.
Returns
The String "infinite", if the value
parameter is TimeSpan.MaxValue; otherwise, the String representing the value
parameter in minutes.
Remarks
The system uses the ConvertTo method when writing an attribute to a configuration file to convert a TimeSpan object to a String object.
The system uses the ConvertTo method when writing to a configuration file to convert a TimeSpan value or MaxValue to a String.