SymWriter 類別

定義

表示 Managed 程式碼的符號寫入器。Represents a symbol writer for managed code.

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

備註

SymWriter類別提供可定義檔、序列點、詞法範圍和變數的方法。The SymWriter class provides methods that define documents, sequence points, lexical scopes, and variables.

建構函式

SymWriter()

初始化 SymWriter 類別的新執行個體。Initializes a new instance of the SymWriter class.

SymWriter(Boolean)

初始化 SymWriter 類別的新執行個體,指定是否要建立基礎符號寫入器。Initializes a new instance of the SymWriter class, specifying whether to create an underlying symbol writer.

方法

__dtor()

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

{dtor}()

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

Close()

關閉 SymWriter 並將符號認可到符號存放區。Closes the SymWriter and commits the symbols to the symbol store.

CloseMethod()

關閉目前的方法。Closes the current method.

CloseNamespace()

關閉最近一次使用的命名空間。Closes the most recent namespace.

CloseScope(Int32)

關閉目前的語彙範圍。Closes the current lexical scope.

DefineDocument(String, Guid, Guid, Guid)

定義來源文件。Defines a source document.

DefineField(SymbolToken, String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32)

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

DefineGlobalVariable(String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32)

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

DefineLocalVariable(String, FieldAttributes, Byte[], SymAddressKind, Int32, Int32, Int32, Int32, Int32)

在目前的語彙範圍中定義單一變數。Defines a single variable in the current lexical scope.

DefineParameter(String, ParameterAttributes, Int32, SymAddressKind, Int32, Int32, Int32)

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

DefineSequencePoints(ISymbolDocumentWriter, Int32[], Int32[], Int32[], Int32[], Int32[])

在目前的方法內定義一組序列點。Defines a group of sequence points within the current method.

Dispose()

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

Dispose(Boolean)

Dispose()Finalize() 方法呼叫,以釋出 SymWriter 類別之目前執行個體所使用的 Managed 和 Unmanaged 資源。Called by the Dispose() and Finalize() methods to release the managed and unmanaged resources used by the current instance of the SymWriter class.

Equals(Object)

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

(繼承來源 Object)
Finalize()

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

GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
GetWriter()

取得基礎 Unmanaged 符號寫入器。Gets the underlying unmanaged symbol writer.

Initialize(IntPtr, String, Boolean)

設定要與這個寫入器關聯的中繼資料 (Metadata) 發出器介面。Sets the metadata emitter interface to associate with this writer.

InitWriter(Boolean)

初始化符號寫入器。Initializes the symbol writer. 您不應該直接呼叫這個方法,它是由建構函式所呼叫。This method should not be called directly; it is called by the constructor.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OpenMethod(SymbolToken)

開啟要置入符號資訊的方法。Opens a method in which to place symbol information.

OpenNamespace(String)

開啟新的命名空間。Opens a new namespace.

OpenScope(Int32)

開啟目前方法中的新語彙範圍。Opens a new lexical scope in the current method.

SetMethodSourceRange(ISymbolDocumentWriter, Int32, Int32, ISymbolDocumentWriter, Int32, Int32)

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

SetScopeRange(Int32, Int32, Int32)

定義指定語彙範圍的位移範圍。Defines the offset range for the specified lexical scope.

SetSymAttribute(SymbolToken, String, Byte[])

在指定屬性名稱和屬性值時定義屬性。Defines an attribute when given the attribute name and the attribute value.

SetUnderlyingWriter(IntPtr)

設定 Managed SymWriter 用來發出符號的基礎 ISymUnmanagedWriter Interface 介面 (對應的 Unmanaged API)。Sets the underlying ISymUnmanagedWriter Interface (the corresponding unmanaged API) that a managed SymWriter uses to emit symbols.

SetUserEntryPoint(SymbolToken)

識別使用者定義的方法做為目前模組的進入點 (Entry Point)。Identifies the user-defined method as the entry point for the current module.

ToString()

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

(繼承來源 Object)
UsingNamespace(String)

指定是在開放式語彙範圍內使用特定且完整的命名空間名稱。Specifies that the given, fully qualified namespace name is used within the open lexical scope.

適用於