Share via


IVsaCodeItem.CodeDOM Property

Gets the code document object model (CodeDOM) represented in the code item.

public: __property CodeObject* get_CodeDOM();
public CodeObject CodeDOM {get;}
Public Property Get CodeDOM() As CodeObject

Return Value

Returns the CodeDOM for the code item.

Remarks

The CodeDOM property is typically generated as part of the compilation step of the script engine, so it is not available until after a call to the IVsaEngine.Compile method. Some VSA implementations may be able to provide the CodeDOM dynamically, without the need for an explicit compilation step, but hosts cannot rely on this behavior. Some script engines, for example, the JScript .NET script engine, do not support this behavior.

The following table shows the exceptions that the CodeDOM property can throw.

Exception Type

Condition

EngineClosed

The IVsaEngine.Close method has been called and the engine is closed.

CodeDOMNotAvailable

There is no CodeDOM available at this time.

See Also

Reference

IVsaCodeItem Interface

IVsaEngine.Compile Method