语言

SymWriter 类

定义

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

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 当前实例使用的托管和非托管资源。

Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
Finalize()

释放非托管资源,并在垃圾回收之前 SymWriter 执行其他清理操作。

GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
GetWriter()

获取基础非托管符号编写器。

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)

设置托管用于发出符号的基础 SymWriter(相应的非托管 API)。

SetUserEntryPoint(SymbolToken)

将用户定义的方法标识为当前模块的入口点。

ToString()

返回一个表示当前对象的字符串。

(继承自 Object)
UsingNamespace(String)

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

适用于