Muokkaa

Jaa


IVsaCodeItem Interface

Definition

Caution

Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.

Represents a code item to be compiled by the script engine.

public interface class IVsaCodeItem : Microsoft::Vsa::IVsaItem
[System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsaCodeItem : Microsoft.Vsa.IVsaItem
[System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")]
public interface IVsaCodeItem : Microsoft.Vsa.IVsaItem
[<System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsaCodeItem = interface
    interface IVsaItem
[<System.Runtime.InteropServices.Guid("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Obsolete("Use of this type is not recommended because it is being deprecated in Visual Studio 2005; there will be no replacement for this feature. Please see the ICodeCompiler documentation for additional help.")>]
type IVsaCodeItem = interface
    interface IVsaItem
Public Interface IVsaCodeItem
Implements IVsaItem
Derived
Attributes
Implements

Remarks

The specified code item can contain classes, modules, or other source text.

No permissions are required for calling any members of the IVsaCodeItem interface.

The script engine implements this interface in order to add code items.

Properties

CodeDOM

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

IsDirty

Returns a value indicating whether the current in-memory representation of the item differs from the persisted representation.

(Inherited from IVsaItem)
ItemType

Gets the specified object's type, as determined by the CreateItem(String, VsaItemType, VsaItemFlag) method.

(Inherited from IVsaItem)
Name

Gets or sets the name of the item.

(Inherited from IVsaItem)
SourceText

Gets or sets the text of a specified code item, including auto-generated code, if any.

Methods

AddEventSource(String, String)

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.

AppendSourceText(String)

Appends specified text to the end of the code item.

GetOption(String)

Gets implementation-specific options for a script engine.

(Inherited from IVsaItem)
RemoveEventSource(String)

Removes the specified event source from the code item.

SetOption(String, Object)

Sets implementation-specific options for a script engine.

(Inherited from IVsaItem)

Applies to