SymWriter 類別

定義

代表 Managed 程式碼的符號寫入器。

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

備註

類別 SymWriter 提供方法來定義檔、序列點、語匯範圍和變數。

建構函式

SymWriter()

初始化 SymWriter 類別的新執行個體。

SymWriter(Boolean)

指定是否要建立基礎符號寫入器,初始化 SymWriter 類別的新執行個體。

方法

__dtor()

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

SymWriter 物件目前執行個體所持有的資源釋出。

{dtor}()

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

SymWriter 物件目前執行個體所持有的資源釋出。

{dtor}()

將目前執行個體所持有的資源釋出。

(繼承來源 SymWriterBase)
Close()

關閉 SymWriter 並將符號認可到符號存放區。

CloseMethod()

關閉目前的方法。

CloseNamespace()

關閉最近一次使用的命名空間。

CloseScope(Int32)

關閉目前的語彙範圍。

DefineDocument(String, Guid, Guid, Guid)

定義來源文件。

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

在所有情況下都擲回 NotSupportedException

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

在所有情況下都擲回 NotSupportedException

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

在目前的語彙範圍中定義單一變數。

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

在所有情況下都擲回 NotSupportedException

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

在目前的方法內定義一組序列點。

Dispose()

SymWriter 類別的目前執行個體所使用的資源釋出。

Dispose(Boolean)

Dispose()Finalize() 方法呼叫,以釋出 SymWriter 類別之目前執行個體所使用的 Managed 和 Unmanaged 資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
Finalize()

釋出 Unmanaged 資源並執行其他清除作業後,記憶體回收才能重新回收 SymWriter

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
GetWriter()

取得基礎 Unmanaged 符號寫入器。

Initialize(IntPtr, String, Boolean)

設定要與這個寫入器相關聯的中繼資料發出器介面。

InitWriter(Boolean)

初始化符號寫入器。 您不應該直接呼叫這個方法,它是由建構函式所呼叫。

MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
OpenMethod(SymbolToken)

開啟要置入符號資訊的方法。

OpenNamespace(String)

開啟新的命名空間。

OpenScope(Int32)

開啟目前方法中的新語彙範圍。

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

在所有情況下都擲回 NotSupportedException

SetScopeRange(Int32, Int32, Int32)

定義指定語彙範圍的位移範圍。

SetSymAttribute(SymbolToken, String, Byte[])

在指定屬性名稱和屬性值時定義屬性。

SetUnderlyingWriter(IntPtr)

設定 Managed SymWriter 用來發出符號的基礎 ISymUnmanagedWriter Interface 介面 (對應的 Unmanaged API)。

SetUserEntryPoint(SymbolToken)

識別使用者定義的方法做為目前模組的進入點。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
UsingNamespace(String)

指定是在開放式語彙範圍內使用指定且完整的命名空間名稱。

適用於