IVsaCodeItem Interface

Definição

Cuidado

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.

Representa um item de código a ser compilado pelo mecanismo de script.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
Derivado
Atributos
Implementações

Comentários

O item de código especificado pode conter classes, módulos ou outro texto de origem.The specified code item can contain classes, modules, or other source text.

Nenhuma permissão é necessária para chamar membros da interface IVsaCodeItem.No permissions are required for calling any members of the IVsaCodeItem interface.

O mecanismo de script implementa essa interface para adicionar itens de código.The script engine implements this interface in order to add code items.

Propriedades

CodeDOM

Obtém o CodeDOM (modelo de objeto do documento de código) representado no item de código.Gets the code document object model (CodeDOM) represented in the code item.

IsDirty

Retorna um valor que indica se a representação na memória atual do item é diferente da representação persistente.Returns a value indicating whether the current in-memory representation of the item differs from the persisted representation.

(Herdado de IVsaItem)
ItemType

Obtém o tipo do objeto especificado, conforme determinado pelo método CreateItem(String, VsaItemType, VsaItemFlag).Gets the specified object's type, as determined by the CreateItem(String, VsaItemType, VsaItemFlag) method.

(Herdado de IVsaItem)
Name

Obtém ou define o nome do item.Gets or sets the name of the item.

(Herdado de IVsaItem)
SourceText

Obtém ou define o texto de um item de código especificado, incluindo o código gerado automaticamente, se houver.Gets or sets the text of a specified code item, including auto-generated code, if any.

Métodos

AddEventSource(String, String)

Adiciona uma origem de evento ao item de código.Adds an event source to the code item. O item de código usa a origem do evento para associar um evento à origem do evento nomeado chamando o método IVsaSite.GetEventSourceInstance, que é implementado pelo host.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)

Acrescenta o texto especificado ao final do item de código.Appends specified text to the end of the code item.

GetOption(String)

Obtém opções específicas de implantação para um mecanismo de script.Gets implementation-specific options for a script engine.

(Herdado de IVsaItem)
RemoveEventSource(String)

Remove a origem do evento especificado do item de código.Removes the specified event source from the code item.

SetOption(String, Object)

Define opções específicas de implantação para um mecanismo de script.Sets implementation-specific options for a script engine.

(Herdado de IVsaItem)

Aplica-se a