IVsaCodeItem (Interfaz)
Nota: esta API ya está obsoleta.
Representa el elemento de código que va a ser compilado por el motor de scripts.
Espacio de nombres: Microsoft.Vsa
Ensamblado: Microsoft.Vsa (en Microsoft.Vsa.dll)
Sintaxis
'Declaración
<ObsoleteAttribute("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.")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
<GuidAttribute("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")> _
Public Interface IVsaCodeItem _
Inherits IVsaItem
[ObsoleteAttribute("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.")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
[GuidAttribute("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
public interface IVsaCodeItem : IVsaItem
[ObsoleteAttribute(L"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.")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
[GuidAttribute(L"E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")]
public interface class IVsaCodeItem : IVsaItem
[<ObsoleteAttribute("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.")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
[<GuidAttribute("E0C0FFE7-7eea-4ee5-b7e4-0080c7eb0b74")>]
type IVsaCodeItem =
interface
interface IVsaItem
end
public interface IVsaCodeItem extends IVsaItem
El tipo IVsaCodeItem expone los siguientes miembros.
Propiedades
Nombre | Descripción | |
---|---|---|
![]() |
CodeDOM | Obtiene el modelo CodeDOM (Code Document Object Model) representado en el elemento de código. |
![]() |
IsDirty | Devuelve un valor que indica si la representación que hay en la memoria del elemento difiere de la representación conservada. (Se hereda de IVsaItem). |
![]() |
ItemType | Obtiene el tipo del objeto especificado, como determina el método IVsaItems.CreateItem Method. (Se hereda de IVsaItem). |
![]() |
Name | Obtiene o establece el nombre del elemento. (Se hereda de IVsaItem). |
![]() |
SourceText | Obtiene o establece el texto de un elemento de código especificado, incluido el código generado automáticamente, si lo hubiera. |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
![]() |
AddEventSource | Agrega un origen de eventos al elemento de código.El elemento de código utiliza el origen de eventos para enlazar un evento al origen de eventos indicado; para ello, se llama al método IVsaSite.GetEventSourceInstance implementado por el host. |
![]() |
AppendSourceText | Anexa el texto especificado al final del elemento de código. |
![]() |
GetOption | Obtiene las opciones específicas de implementación de un motor de scripts. (Se hereda de IVsaItem). |
![]() |
RemoveEventSource | Quita el origen de eventos especificado del elemento de código. |
![]() |
SetOption | Establece las opciones específicas de implementación de un motor de scripts. (Se hereda de IVsaItem). |
Arriba
Comentarios
El elemento de código especificado puede contener las clases, módulos, u otro texto original.
No se requiere ningún permiso para llamar a ningún miembro de la interfaz de IVsaCodeItem.
El motor de scripts implementa esta interfaz para agregar elementos de código.