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

傳回

例外狀況

適用於