แก้ไข

แชร์ผ่าน


SymScope Class

Definition

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

public ref class SymScope : System::Diagnostics::SymbolStore::ISymbolScope
public ref class SymScope : System::Diagnostics::SymbolStore::SymScopeBase, IDisposable, System::Diagnostics::SymbolStore::ISymbolScope
public class SymScope : System.Diagnostics.SymbolStore.ISymbolScope
[System.Runtime.InteropServices.ComVisible(true)]
public class SymScope : System.Diagnostics.SymbolStore.ISymbolScope
[System.Runtime.InteropServices.ComVisible(true)]
public class SymScope : System.Diagnostics.SymbolStore.SymScopeBase, IDisposable, System.Diagnostics.SymbolStore.ISymbolScope
type SymScope = class
    interface ISymbolScope
[<System.Runtime.InteropServices.ComVisible(true)>]
type SymScope = class
    interface ISymbolScope
[<System.Runtime.InteropServices.ComVisible(true)>]
type SymScope = class
    inherit SymScopeBase
    interface ISymbolScope
    interface IDisposable
Public Class SymScope
Implements ISymbolScope
Public Class SymScope
Inherits SymScopeBase
Implements IDisposable, ISymbolScope
Inheritance
SymScope
Inheritance
SymScope
Attributes
Implements

Remarks

The SymScope class also provides access to all locals defined within the current scope.

Constructors

SymScope(ISymUnmanagedScope*)

Initializes a new instance of the SymScope class by using the specified pointer to an unmanaged ISymUnmanagedScope object.

SymScope(ISymUnmanagedScope*)

Initializes a new instance of the SymScope class using the specified pointer to an unmanaged ISymUnmanagedScope object.

Properties

EndOffset

Gets the end offset of the current lexical scope.

Method

Gets the method that contains the current lexical scope.

Parent

Gets the parent lexical scope of the current scope.

StartOffset

Gets the start offset of the current lexical scope.

Methods

__dtor()

This API supports the product infrastructure and is not intended to be used directly from your code.

Releases the resources held by the current instance.

{dtor}()

This API supports the product infrastructure and is not intended to be used directly from your code.

Releases the resources held by the current instance.

{dtor}()

Releases the resources held by the current instance.

(Inherited from SymScopeBase)
Dispose()

Releases the resources used by the current instance of the SymScope class.

Dispose(Boolean)

Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the SymScope class.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize()

Releases unmanaged resources and performs other cleanup operations before the SymScope is reclaimed by garbage collection.

GetChildren()

Gets the child lexical scopes of the current lexical scope.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLocals()

Gets the local variables within the current lexical scope.

GetNamespaces()

Throws a NotSupportedException in all cases.

GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to