語言

ISymbolWriter 介面

定義

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

public interface class ISymbolWriter
public interface ISymbolWriter
[System.Runtime.InteropServices.ComVisible(true)]
public interface ISymbolWriter
type ISymbolWriter = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type ISymbolWriter = interface
Public Interface ISymbolWriter
衍生
屬性

備註

介面 ISymbolWriter 提供定義文件、序列點、詞彙範圍及變數的方法。

Note

此介面是介面的受管理對應介面 ISymUnmanagedWriter ,後者是非受管理符號存儲介面之一,提供另一種讀寫除錯符號資訊的方式。

方法

名稱 Description
Close()

關閉 ISymbolWriter 並將符號提交到符號儲存。

CloseMethod()

關閉了目前的方法。

CloseNamespace()

關閉最新的命名空間。

CloseScope(Int32)

關閉了目前的詞彙範圍。

DefineDocument(String, Guid, Guid, Guid)

定義原始文件。

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

定義欄位為類型或全域欄位。

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

定義了一個全域變數。

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

定義了目前詞彙範疇中的單一變數。

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

定義目前方法中的單一參數。 每個參數的型別取自其在方法簽名中的位置。

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

定義了目前方法中的一組序列點。

Initialize(IntPtr, String, Boolean)

設定元資料輸出介面與寫入者關聯。

OpenMethod(SymbolToken)

開啟一種方法來放置符號資訊。

OpenNamespace(String)

開啟一個新的命名空間。

OpenScope(Int32)

在目前的方法中開啟了一個新的詞彙範圍。

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

指定方法在原始碼檔案中真實的起始與結束。 用 SetMethodSourceRange(ISymbolDocumentWriter, Int32, Int32, ISymbolDocumentWriter, Int32, Int32) 來指定方法的範圍,獨立於方法內存在的序列點。

SetScopeRange(Int32, Int32, Int32)

定義指定詞彙範圍的偏移範圍。

SetSymAttribute(SymbolToken, String, Byte[])

在給定屬性名稱與屬性值時定義屬性。

SetUnderlyingWriter(IntPtr)

設定被管理ISymUnmanagedWriter裝置用來發射符號的底層ISymbolWriter(對應的非受管介面)。

SetUserEntryPoint(SymbolToken)

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

UsingNamespace(String)

規定在開放詞彙範圍內使用給定的完整限定命名空間名稱。

適用於

另請參閱