TimeSpanMinutesOrInfiniteConverter::ConvertTo Method (ITypeDescriptorContext^, CultureInfo^, Object^, Type^)
.NET Framework (current version)
Namespace:
System.Configuration
Assembly: System.Configuration (in System.Configuration.dll)
Return to top
Assembly: System.Configuration (in System.Configuration.dll)
public: virtual Object^ ConvertTo( ITypeDescriptorContext^ ctx, CultureInfo^ ci, Object^ value, Type^ type ) override
Parameters
- ctx
-
Type:
System.ComponentModel::ITypeDescriptorContext^
The ITypeDescriptorContext object used for type conversions.
- ci
-
Type:
System.Globalization::CultureInfo^
The CultureInfo object used during conversion.
- value
-
Type:
System::Object^
The value to convert.
- type
-
Type:
System::Type^
The conversion type.
Return Value
Type: System::Object^The String "infinite", if the value parameter is MaxValue; otherwise, the String representing the value parameter in minutes.
Refer to the code examples in the InfiniteTimeSpanConverter and TimeSpanMinutesConverter classes.
.NET Framework
Available since 2.0
Available since 2.0
Show: