Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IVsaCodeItem.CodeDOM Property

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

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

Property 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.

Requirements

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.