This documentation is archived and is not being maintained.
DataSourceCacheDurationConverter::ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
Visual Studio 2010
Converts the specified object to an Int32 object.
Assembly: System.Web (in System.Web.dll)
public: virtual Object^ ConvertFrom( ITypeDescriptorContext^ context, CultureInfo^ culture, Object^ value ) override
Parameters
- context
- Type: System.ComponentModel::ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
- culture
- Type: System.Globalization::CultureInfo
A CultureInfo that specifies the culture in which to represent the number.
- value
- Type: System::Object
The object to convert.
Return Value
Type: System::ObjectAn object that represents the converted value. If nullptr is passed in the value parameter, nullptr is returned.
The DataSourceCacheDurationConverter::ConvertFrom method converts an String::Empty string or the string "Infinite" to the value 0. Other values are handled by the base class, Int32Converter.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: