SymMethod SymMethod SymMethod SymMethod Class

定義

表示符號存放區 (Store) 內的方法。Represents a method within a symbol store.

public ref class SymMethod : System::Diagnostics::SymbolStore::SymMethodBase, IDisposable, System::Diagnostics::SymbolStore::ISymbolMethod
[System.Runtime.InteropServices.ComVisible(true)]
public class SymMethod : System.Diagnostics.SymbolStore.SymMethodBase, IDisposable, System.Diagnostics.SymbolStore.ISymbolMethod
type SymMethod = class
    inherit SymMethodBase
    interface ISymbolMethod
    interface IDisposable
Public Class SymMethod
Inherits SymMethodBase
Implements IDisposable, ISymbolMethod
繼承
SymMethodSymMethodSymMethodSymMethod
屬性
實作

備註

SymMethod類別提供方法,例如序列點、 語彙範圍和參數資訊之與符號相關屬性存取。The SymMethod class provides access only to the symbol-related attributes of a method, such as sequence points, lexical scopes, and parameter information. 使用System.Reflection類別來讀取方法的型別相關的屬性。Use the System.Reflection classes to read the type-related attributes of a method.

建構函式

SymMethod(ISymUnmanagedMethod*) SymMethod(ISymUnmanagedMethod*) SymMethod(ISymUnmanagedMethod*) SymMethod(ISymUnmanagedMethod*)

從原始指標初始化 SymMethod 類別的新執行個體至非受控介面。Initializes a new instance of the SymMethod class from a raw pointer to an unmanaged interface.

SymMethod(ISymUnmanagedMethod*) SymMethod(ISymUnmanagedMethod*) SymMethod(ISymUnmanagedMethod*) SymMethod(ISymUnmanagedMethod*)

從非受控 ISymUnmanagedMethod 介面的原始指標初始化 SymMethod 類別的新執行個體。Initializes a new instance of the SymMethod class from a raw pointer to the unmanaged ISymUnmanagedMethod interface.

屬性

RootScope RootScope RootScope RootScope

取得目前方法的根語彙範圍。Gets the root lexical scope for the current method. 這個範圍會封入整個方法。This scope encloses the entire method.

SequencePointCount SequencePointCount SequencePointCount SequencePointCount

取得方法中序列點的計數。Gets a count of the sequence points in the method.

Token Token Token Token

取得 SymbolToken,其包含目前方法的中繼資料 (Metadata)。Gets the SymbolToken containing the metadata for the current method.

方法

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

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

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

Dispose()Finalize() 方法呼叫,以釋出 SymMethod 類別之目前執行個體所使用的 Managed 和 Unmanaged 資源。Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the SymMethod 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 資源並執行其他清除作業後,記憶體回收才能重新回收 SymMethodReleases unmanaged resources and performs other cleanup operations before the SymMethod is reclaimed by garbage collection.

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

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

(Inherited from Object)
GetNamespace() GetNamespace() GetNamespace() GetNamespace()

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

GetOffset(ISymbolDocument, Int32, Int32) GetOffset(ISymbolDocument, Int32, Int32) GetOffset(ISymbolDocument, Int32, Int32) GetOffset(ISymbolDocument, Int32, Int32)

取得 Microsoft Intermediate Language (MSIL) 位移,位於對應到指定位置的方法內。Gets the Microsoft intermediate language (MSIL) offset within the method that corresponds to the specified position.

GetParameters() GetParameters() GetParameters() GetParameters()

取得目前方法的參數。Gets the parameters for the current method.

GetRanges(ISymbolDocument, Int32, Int32) GetRanges(ISymbolDocument, Int32, Int32) GetRanges(ISymbolDocument, Int32, Int32) GetRanges(ISymbolDocument, Int32, Int32)

取得開始和結束位移組的陣列,其對應至這個方法內指定之位置所涵蓋的 Microsoft Intermediate Language (MSIL) 位移範圍。Gets an array of start and end offset pairs that correspond to the ranges of Microsoft intermediate language (MSIL) offsets that a given position covers within this method.

GetScope(Int32) GetScope(Int32) GetScope(Int32) GetScope(Int32)

傳回對應至方法內位移之最封入的語彙範圍。Returns the most enclosing lexical scope corresponding to an offset within a method.

GetSequencePoints(Int32[], ISymbolDocument[], Int32[], Int32[], Int32[], Int32[]) GetSequencePoints(Int32[], ISymbolDocument[], Int32[], Int32[], Int32[], Int32[]) GetSequencePoints(Int32[], ISymbolDocument[], Int32[], Int32[], Int32[], Int32[]) GetSequencePoints(Int32[], ISymbolDocument[], Int32[], Int32[], Int32[], Int32[])

取得目前方法的序列點,並將資訊儲存在指定的陣列中。Gets the sequence points for the current method and stores the information in the specified arrays.

GetSourceStartEnd(ISymbolDocument[], Int32[], Int32[]) GetSourceStartEnd(ISymbolDocument[], Int32[], Int32[]) GetSourceStartEnd(ISymbolDocument[], Int32[], Int32[]) GetSourceStartEnd(ISymbolDocument[], Int32[], Int32[])

在所有情況下都擲回 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)
RootScopeInternal() RootScopeInternal() RootScopeInternal() RootScopeInternal()

取得目前方法的根語彙範圍。Gets the root lexical scope for the current method. 這個範圍會封入整個方法。This scope encloses the entire method.

ToString() ToString() ToString() ToString()

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

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

SymMethod 物件目前執行個體所持有的資源釋出。Releases the resources held by the current instance of the SymMethod object.

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

SymMethod 物件目前執行個體所持有的資源釋出。Releases the resources held by the current instance of the SymMethod object.

適用於