Share via


SymMethod.GetScope(Int32) Méthode

Définition

Retourne la portée lexicale la plus englobante correspondant à un offset dans une méthode.

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

Paramètres

offset
Int32

Offset IL dans la méthode à rechercher.

Retours

Portée lexicale la plus englobante pour l'offset IL donné dans la méthode.

Implémente

Remarques

Vous pouvez utiliser la GetScope méthode pour démarrer des recherches de variables locales.

S’applique à