IVsaCodeItem.CodeDOM 属性

定义

获取在代码项中表示的代码文档对象模型 (CodeDOM)。Gets the code document object model (CodeDOM) represented in the code item.

public:
 property System::CodeDom::CodeObject ^ CodeDOM { System::CodeDom::CodeObject ^ get(); };
public System.CodeDom.CodeObject CodeDOM { get; }
member this.CodeDOM : System.CodeDom.CodeObject
Public ReadOnly Property CodeDOM As CodeObject

属性值

CodeObject

代码项的 CodeDOM。The CodeDOM for the code item.

注解

CodeDOM 属性通常作为脚本引擎的编译步骤的一部分生成,因此在调用 IVsaEngine 方法之前,该属性不可用。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. 某些 VSA 实现可能能够动态提供 CodeDOM,无需显式编译步骤,但主机不能依赖于这种行为。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. 某些脚本引擎(例如,JScript .NET 脚本引擎)不支持此行为。Some script engines, for example, the JScript .NET script engine, do not support this behavior.

适用于