BaseCompareValidator.Convert Method (String, ValidationDataType, Object)
Assembly: System.Web (in system.web.dll)
protected: static bool Convert ( String^ text, ValidationDataType type, [OutAttribute] Object^% value )
protected static boolean Convert ( String text, ValidationDataType type, /** @attribute OutAttribute() */ /** @ref */ Object value )
JScript does not support passing value-type arguments by reference.
Parameters
- text
The text to convert.
- type
One of the ValidationDataType values.
- value
When this method returns, contains an object with the conversion result. This parameter is passed uninitialized.
Return Value
true if the conversion is successful; otherwise, false.The Convert(String,ValidationDataType,Object) method is used to convert text into an object of the specified data type. Although the method returns true or false to indicate whether the conversion was successful, the converted value is stored in the value out parameter.
Note |
|---|
| If the conversion is unsuccessful, the value parameter is set to a null reference (Nothing in Visual Basic). |
This version of the method converts values using the format used by the current culture. To convert values using a culture-neutral format, use the BaseCompareValidator.Convert(String,ValidationDataType,Boolean,Object) overloaded version of this method.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note