SymScope SymScope SymScope SymScope Class

定義

表示 SymMethod 內的語彙範圍 (Lexical Scope),提供範圍的開始和結束位移的存取,以及其子系和父代範圍的存取。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::SymScopeBase, IDisposable, System::Diagnostics::SymbolStore::ISymbolScope
[System.Runtime.InteropServices.ComVisible(true)]
public class SymScope : System.Diagnostics.SymbolStore.SymScopeBase, IDisposable, System.Diagnostics.SymbolStore.ISymbolScope
type SymScope = class
    inherit SymScopeBase
    interface ISymbolScope
    interface IDisposable
Public Class SymScope
Inherits SymScopeBase
Implements IDisposable, ISymbolScope
繼承
SymScopeSymScopeSymScopeSymScope
屬性
實作

備註

SymScope類別也會提供存取目前的範圍內定義的所有區域變數。The SymScope class also provides access to all locals defined within the current scope.

建構函式

SymScope(ISymUnmanagedScope*) SymScope(ISymUnmanagedScope*) SymScope(ISymUnmanagedScope*) SymScope(ISymUnmanagedScope*)

使用非受控 ISymUnmanagedScope 物件的指定指標,初始化 SymScope 類別的新執行個體。Initializes a new instance of the SymScope class by using the specified pointer to an unmanaged ISymUnmanagedScope object.

SymScope(ISymUnmanagedScope*) SymScope(ISymUnmanagedScope*) SymScope(ISymUnmanagedScope*) SymScope(ISymUnmanagedScope*)

使用非受控 ISymUnmanagedScope 物件的指定指標,初始化 SymScope 類別的新執行個體。Initializes a new instance of the SymScope class using the specified pointer to an unmanaged ISymUnmanagedScope object.

屬性

EndOffset EndOffset EndOffset EndOffset

取得目前語彙範圍的結束位移。Gets the end offset of the current lexical scope.

Method Method Method Method

取得包含目前語彙範圍的方法。Gets the method that contains the current lexical scope.

Parent Parent Parent Parent

取得目前範圍的父代語彙範圍。Gets the parent lexical scope of the current scope.

StartOffset StartOffset StartOffset StartOffset

取得目前語彙範圍的開始位移。Gets the start offset of the current lexical scope.

方法

Dispose() Dispose() Dispose() Dispose()

SymScope 類別的目前執行個體所使用的資源釋出。Releases the resources used by the current instance of the SymScope class.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Dispose()Finalize() 方法呼叫,以釋出 SymScope 類別之目前執行個體所使用的 Managed 和 Unmanaged 資源。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) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
Finalize() Finalize() Finalize() Finalize()

釋出 Unmanaged 資源並執行其他清除作業後,記憶體回收才能重新回收 SymScopeReleases unmanaged resources and performs other cleanup operations before the SymScope is reclaimed by garbage collection.

GetChildren() GetChildren() GetChildren() GetChildren()

取得目前語彙範圍的子系語彙範圍。Gets the child lexical scopes of the current lexical scope.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetLocals() GetLocals() GetLocals() GetLocals()

取得目前語彙範圍內的區域變數。Gets the local variables within the current lexical scope.

GetNamespaces() GetNamespaces() GetNamespaces() GetNamespaces()

在所有情況下都擲回 NotSupportedExceptionThrows a NotSupportedException in all cases.

GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)
__dtor() __dtor() __dtor() __dtor()

將目前執行個體所持有的資源釋出。Releases the resources held by the current instance.

{dtor}() {dtor}() {dtor}() {dtor}()

將目前執行個體所持有的資源釋出。Releases the resources held by the current instance.

適用於