ExpressionNode.ConvertFromString(String, String) 方法

定义

将字符串转换为指定类型的对象。 类型必须受支持。 否则引发 UnsupportedTypeException。 捕获 FormatException 并引发 TypeConversionException。

protected static object ConvertFromString(string stringObjType, string stringValue);
static member ConvertFromString : string * string -> obj
Protected Shared Function ConvertFromString (stringObjType As String, stringValue As String) As Object

参数

stringObjType
String
stringValue
String

返回

例外

适用于