This documentation is archived and is not being maintained.

IVsaCodeItem.CodeDOM Property

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

[Visual Basic]
ReadOnly Property CodeDOM As CodeObject
CodeObject CodeDOM {get;}
__property CodeObject* get_CodeDOM();
function get CodeDOM() : CodeObject;

Property Value

Returns the CodeDOM for the code item.


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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IVsaCodeItem Interface | IVsaCodeItem Members | Microsoft.Vsa Namespace | IVsaEngine.Compile