This documentation is archived and is not being maintained.
IVsaScriptCodeItem Interface
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Defines extra functionality that is needed by an IActiveScript host.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
The IVsaScriptCodeItem type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CodeDOM | Gets the code document object model (CodeDOM) represented in the code item. (Inherited from IJSVsaCodeItem.) |
![]() | IsDirty | Returns a value indicating whether the current in-memory representation of the item differs from the persisted representation. (Inherited from IJSVsaItem.) |
![]() | ItemType | Gets the specified object's type, as determined by the CreateItem method. (Inherited from IJSVsaItem.) |
![]() | Name | Sets or gets the name of the item. (Inherited from IJSVsaItem.) |
![]() | SourceText | Sets or gets the text of a specified code item, including auto-generated code, if any. (Inherited from IJSVsaCodeItem.) |
![]() | StartColumn | When implemented in a class, gets or sets the column number in the line where this code starts. |
![]() | StartLine | When implemented in a class, gets or sets the line number where this code starts. |
| Name | Description | |
|---|---|---|
![]() | AddEventSource | Adds an event source to the code item. 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. (Inherited from IJSVsaCodeItem.) |
![]() | AppendSourceText | Appends specified text to the end of the code item. (Inherited from IJSVsaCodeItem.) |
![]() | Execute | When implemented in a class, compiles and runs this code. |
![]() | GetOption | Gets implementation-specific options for a script engine. (Inherited from IJSVsaItem.) |
![]() | RemoveEventSource | Removes the specified event source from the code item. (Inherited from IJSVsaCodeItem.) |
![]() | SetOption | Sets implementation-specific options for a script engine. (Inherited from IJSVsaItem.) |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
