This documentation is archived and is not being maintained.

ISymbolScope Interface

Represents a lexical scope within ISymbolMethod, providing access to the start and end offsets of the scope, as well as its child and parent scopes.

Namespace:  System.Diagnostics.SymbolStore
Assembly:  mscorlib (in mscorlib.dll)

public interface ISymbolScope

The ISymbolScope type exposes the following members.

Public propertyEndOffsetGets the end offset of the current lexical scope.
Public propertyMethodGets the method that contains the current lexical scope.
Public propertyParentGets the parent lexical scope of the current scope.
Public propertyStartOffsetGets the start offset of the current lexical scope.

Public methodGetChildrenGets the child lexical scopes of the current lexical scope.
Public methodGetLocalsGets the local variables within the current lexical scope.
Public methodGetNamespacesGets the namespaces that are used within the current scope.

The ISymbolScope interface also provides access to all locals defined within the current scope.


This interface is the managed counterpart of the ISymUnmanagedScope interface, which is one of the unmanaged symbol store interfaces that provide an alternate way to read and write debug symbol information.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.