Bagikan melalui


SymMethod.GetScope(Int32) Metode

Definisi

Mengembalikan cakupan leksikal yang paling tertutup yang sesuai dengan offset dalam metode .

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

Parameter

offset
Int32

Offset IL dalam metode untuk mencari.

Mengembalikan

Cakupan leksikal yang paling tertutup untuk offset IL yang diberikan dalam metode .

Penerapan

Keterangan

Anda dapat menggunakan GetScope metode untuk memulai pencarian variabel lokal.

Berlaku untuk