System.Diagnostics.SymbolStore.ISymbolScope Interface

Assembly: Mscorlib.dll
Namespace: System.Diagnostics.SymbolStore
Summary
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.
C# Syntax:
public interface ISymbolScope
Remarks
The ISymbolScope interface also provides access to all locals defined within the current scope.
See also:
System.Diagnostics.SymbolStore Namespace

System.Diagnostics.SymbolStore.ISymbolScope Member List:

Public Properties
EndOffset Read-only

Gets the end offset of the current lexical scope.
Method Read-only

Gets the method that contains the current lexical scope.
Parent Read-only

Gets the parent lexical scope of the current scope.
StartOffset Read-only

Gets the start offset of the current lexical scope.
Public Methods
GetChildren Gets the child lexical scopes of the current lexical scope.
GetLocals Gets the local variables within the current lexical scope.
GetNamespaces Gets the namespaces that are used within the current scope.

System.Diagnostics.SymbolStore.ISymbolScope Member Details

Property: EndOffset (read-only)
Summary
Gets the end offset of the current lexical scope.
C# Syntax:
int EndOffset {get;}

Return to top


Property: Method (read-only)
Summary
Gets the method that contains the current lexical scope.
C# Syntax:
ISymbolMethod Method {get;}
Return Value:
The method that contains the current lexical scope.

Return to top


Property: Parent (read-only)
Summary
Gets the parent lexical scope of the current scope.
C# Syntax:
ISymbolScope Parent {get;}
Return Value:
The parent lexical scope of the current scope.

Return to top


Property: StartOffset (read-only)
Summary
Gets the start offset of the current lexical scope.
C# Syntax:
int StartOffset {get;}

Return to top


Method: GetChildren()
Summary
Gets the child lexical scopes of the current lexical scope.
C# Syntax:
ISymbolScope[] GetChildren();
Return Value:
The child lexical scopes that of the current lexical scope.

Return to top


Method: GetLocals()
Summary
Gets the local variables within the current lexical scope.
C# Syntax:
ISymbolVariable[] GetLocals();
Return Value:
The local variables within the current lexical scope.
Remarks
The local variables are returned in no particular order. If a local variable changes its address within the current scope, that variable is returned multiple times, each with a different offset range.

Return to top


Method: GetNamespaces()
Summary
Gets the namespaces that are used within the current scope.
C# Syntax:
ISymbolNamespace[] GetNamespaces();
Return Value:
The namespaces that are used within the current scope.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.