Op Englesch liesen Editéieren

Deelen iwwer


SymMethod.GetScope(Int32) Method

Definition

Returns the most enclosing lexical scope corresponding to an offset within a method.

C#
public override System.Diagnostics.SymbolStore.ISymbolScope GetScope(int offset);
C#
public virtual System.Diagnostics.SymbolStore.ISymbolScope GetScope(int offset);

Parameters

offset
Int32

The IL offset within the method to look up.

Returns

The most enclosing lexical scope for the given IL offset within the method.

Implements

Remarks

You can use the GetScope method to start local variable searches.

Applies to

Produkt Versiounen
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1