ISymUnmanagedWriter::OpenMethod Method

Opens a method into which symbol information is emitted. The given method becomes the current method for calls to define sequence points, parameters, and lexical scopes. There is an implicit lexical scope around the entire method. Reopening a method that was previously closed erases any previously defined symbols for that method. There can be only one open method at a time.

Syntax

HRESULT OpenMethod(  
    [in] mdMethodDef method);  

Parameters

method
[in] The metadata token for the method to be opened.

Return Value

S_OK if the method succeeds; otherwise, E_FAIL or some other error code.

Requirements

Header: CorSym.idl, CorSym.h

See also