ISymbolWriter 接口

定义

表示托管代码的符号编写器。

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 接口提供用于定义文档、序列点、词法范围和变量的方法。

备注

此接口是接口的 ISymUnmanagedWriter 托管对应接口,它是非托管符号存储接口之一,提供读取和写入调试符号信息的替代方法。

方法

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)

指定在打开的词法范围内使用给定的、完全限定的命名空间名称。

适用于

另请参阅