Converts the provided string to a value of TYPE if the type is registered, or raises ArgumentOutOfRangeException if no transform is registered for that type. Throws an ArgumentException if the string can not be converted.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Function FromString(Of TYPE)( _
ByVal value As String _
) As TYPE |
Parameters
- value
Type Parameters
- TYPE
Exceptions
| Exception | Description |
| System.ArgumentException | The exception that is thrown when one of the arguments provided to a method is not valid. |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also