SymMethod.GetScope(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the most enclosing lexical scope corresponding to an offset within a method.
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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.