 | ValueConverterArgumentFromStringT Method |
Creates an instance of the specified type from string data.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static T ArgumentFromString<T>(
string argNamename,
string value
)
Public Shared Function ArgumentFromString(Of T) (
argNamename As String,
value As String
) As T
Parameters
- argNamename
- Type: SystemString
The name of the argument that the value is being converted for. - value
- Type: SystemString
The string data representation of the type.
Type Parameters
- T
- The target type.
Return Value
Type:
TThe object instance.
Exceptions| Exception | Condition |
|---|
| Exception | If the value cannot be converted to
the specified T. |
See Also