SymWriter Class

 

Updated: March 13, 2015

Represents a symbol writer for managed code.

Namespace:   System.Diagnostics.SymbolStore
Assembly:  ISymWrapper (in ISymWrapper.dll)

System.Object
  System.Diagnostics.SymbolStore.SymWriterBase
    System.Diagnostics.SymbolStore.SymWriter

[ComVisibleAttribute(true)]
[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public class SymWriter : SymWriterBase, ISymbolWriter, IDisposable

NameDescription
System_CAPS_pubmethodSymWriter()

Initializes a new instance of the SymWriter class.

System_CAPS_pubmethodSymWriter(Boolean)

Initializes a new instance of the SymWriter class, specifying whether to create an underlying symbol writer.

NameDescription
System_CAPS_pubmethod{dtor}()

Releases the resources held by the current instance.(Inherited from SymWriterBase.)

System_CAPS_pubmethodClose()

Closes the SymWriter and commits the symbols to the symbol store.

System_CAPS_pubmethodCloseMethod()

Closes the current method.

System_CAPS_pubmethodCloseNamespace()

Closes the most recent namespace.

System_CAPS_pubmethodCloseScope(Int32)

Closes the current lexical scope.

System_CAPS_pubmethodDefineDocument(String, Guid, Guid, Guid)

Defines a source document.

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

Throws a NotSupportedException in all cases.

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

Throws a NotSupportedException in all cases.

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

Defines a single variable in the current lexical scope.

System_CAPS_pubmethodDefineParameter(String, ParameterAttributes, Int32, SymAddressKind, Int32, Int32, Int32)

Throws a NotSupportedException in all cases.

System_CAPS_pubmethodDefineSequencePoints(ISymbolDocumentWriter, Int32[], Int32[], Int32[], Int32[], Int32[])

Defines a group of sequence points within the current method.

System_CAPS_pubmethodDispose()

Releases the resources used by the current instance of the SymWriter class.

System_CAPS_protmethodDispose(Boolean)

Called by the Dispose and Finalize methods to release the managed and unmanaged resources used by the current instance of the SymWriter class.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Releases unmanaged resources and performs other cleanup operations before the SymWriter is reclaimed by garbage collection.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitialize(IntPtr, String, Boolean)

Sets the metadata emitter interface to associate with this writer.

System_CAPS_pubmethodInitWriter(Boolean)

Initializes the symbol writer. This method should not be called directly; it is called by the constructor.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodOpenMethod(SymbolToken)

Opens a method in which to place symbol information.

System_CAPS_pubmethodOpenNamespace(String)

Opens a new namespace.

System_CAPS_pubmethodOpenScope(Int32)

Opens a new lexical scope in the current method.

System_CAPS_pubmethodSetMethodSourceRange(ISymbolDocumentWriter, Int32, Int32, ISymbolDocumentWriter, Int32, Int32)

Throws a NotSupportedException in all cases.

System_CAPS_pubmethodSetScopeRange(Int32, Int32, Int32)

Defines the offset range for the specified lexical scope.

System_CAPS_pubmethodSetSymAttribute(SymbolToken, String, Byte[])

Defines an attribute when given the attribute name and the attribute value.

System_CAPS_pubmethodSetUnderlyingWriter(IntPtr)

Sets the underlying ISymUnmanagedWriter Interface (the corresponding unmanaged API) that a managed SymWriter uses to emit symbols.

System_CAPS_pubmethodSetUserEntryPoint(SymbolToken)

Identifies the user-defined method as the entry point for the current module.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodUsingNamespace(String)

Specifies that the given, fully qualified namespace name is used within the open lexical scope.

The SymWriter class provides methods that define documents, sequence points, lexical scopes, and variables.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: