Sets or gets the text of a specified code item, including auto-generated code, if any 设置或获取指定的代码项的文本,包括自动生成的代码(如果有)。
Defines an interface for all items added to the . net script engine, including code items, reference items, and global items 为所有添加到.net脚本引擎的项定义一个接口,包括代码项、引用项和全局项。
Within the code item, you can access the event source object by name, and, once accessed, you can write event handlers against the object 在代码项中,可以按名称访问事件源对象,而且,一旦访问过以后,就可以针对对象编写事件处理程序。
The code item uses the event source to hook up an event to the named event source by calling the ivsasite . geteventsourceinstance method, which is implemented by the host 代码项通过调用ivsasite.geteventsourceinstance方法(由宿主实现),使用事件源将事件挂钩到命名事件源。