語言

ISymbolMethod.GetScope(Int32) 方法

定義

在方法內給予偏移量時,回傳最封閉的詞彙範圍。

public:
 System::Diagnostics::SymbolStore::ISymbolScope ^ GetScope(int offset);
public System.Diagnostics.SymbolStore.ISymbolScope GetScope(int offset);
abstract member GetScope : int -> System.Diagnostics.SymbolStore.ISymbolScope
Public Function GetScope (offset As Integer) As ISymbolScope

參數

offset
Int32

位元組偏移量在詞彙範圍內。

傳回

方法是方法中給定位元組偏移量的最封閉詞彙範圍。

備註

你可以用這個 GetScope 方法開始區域變數搜尋。

適用於