IDebugVsaScriptCodeItem.ParseNamedBreakPoint 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在類別中實作時,會解析字串並回傳解析出的資訊。 此方法通常由需要解析以 . string表示為 的斷點資訊的除錯器呼叫。 除錯器可能有使用者在 functionname-arguments-ILoffset 格式中輸入的斷點。 命名的斷點字串可以有複雜的格式,例如, F.B(C.D[], int, arg : double ) : C.Abc + 123. 參數列表是可選的,IL 偏移量也是。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
bool ParseNamedBreakPoint(System::String ^ input, [Runtime::InteropServices::Out] System::String ^ % functionName, [Runtime::InteropServices::Out] int % nargs, [Runtime::InteropServices::Out] System::String ^ % arguments, [Runtime::InteropServices::Out] System::String ^ % returnType, [Runtime::InteropServices::Out] System::UInt64 % offset);
public bool ParseNamedBreakPoint(string input, out string functionName, out int nargs, out string arguments, out string returnType, out ulong offset);
abstract member ParseNamedBreakPoint : string * string * int * string * string * uint64 -> bool
Public Function ParseNamedBreakPoint (input As String, ByRef functionName As String, ByRef nargs As Integer, ByRef arguments As String, ByRef returnType As String, ByRef offset As ULong) As Boolean
參數
- input
- String
一個結構良好的命名斷點字串,提供函式、可選的參數列表,以及可選的 IL 偏移量。
- functionName
- String
出參數回傳從輸入字串解析出來的函式名稱,若輸入字串未成形則回傳空字串。
- nargs
- Int32
Out 參數回傳可選參數清單中的參數數量。 若無參數列表或字串非良構,則回傳 0。
- arguments
- String
出參數回傳一個空格分隔的列,列出所有參數中所有參數的類型名稱,若缺少參數列表或輸入字串不完整,則回傳空字串。
- returnType
- String
出函式回傳包含輸入中所命名函式回傳型別的字串,若缺少回傳型別或輸入字串未成形,則回傳空字串。
- offset
- UInt64
無號長整數表示 IL 偏移量與輸入字串的相對於,若沒有 IL 偏移或字串未成形,則為零。
傳回
true如果成功解析指定的斷點;否則,。 false