This documentation is archived and is not being maintained.

IVsaScriptCodeItem Interface

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.

Namespace:  Microsoft.JScript
Assembly:  Microsoft.JScript (in Microsoft.JScript.dll)

[GuidAttribute(L"E0C0FFE8-7eea-4ee5-b7e4-0080c7eb0b74")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[ComVisibleAttribute(true)]
public interface class IVsaScriptCodeItem : IJSVsaCodeItem, 
	IJSVsaItem

The IVsaScriptCodeItem type exposes the following members.

  NameDescription
Public propertyCodeDOMGets the code document object model (CodeDOM) represented in the code item. (Inherited from IJSVsaCodeItem.)
Public propertyIsDirtyReturns a value indicating whether the current in-memory representation of the item differs from the persisted representation. (Inherited from IJSVsaItem.)
Public propertyItemTypeGets the specified object's type, as determined by the CreateItem method. (Inherited from IJSVsaItem.)
Public propertyNameSets or gets the name of the item. (Inherited from IJSVsaItem.)
Public propertySourceTextSets or gets the text of a specified code item, including auto-generated code, if any. (Inherited from IJSVsaCodeItem.)
Public propertyStartColumnWhen implemented in a class, gets or sets the column number in the line where this code starts.
Public propertyStartLineWhen implemented in a class, gets or sets the line number where this code starts.
Top

  NameDescription
Public methodAddEventSourceAdds 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.)
Public methodAppendSourceTextAppends specified text to the end of the code item. (Inherited from IJSVsaCodeItem.)
Public methodExecuteWhen implemented in a class, compiles and runs this code.
Public methodGetOptionGets implementation-specific options for a script engine. (Inherited from IJSVsaItem.)
Public methodRemoveEventSourceRemoves the specified event source from the code item. (Inherited from IJSVsaCodeItem.)
Public methodSetOptionSets implementation-specific options for a script engine. (Inherited from IJSVsaItem.)
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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: