IVsaCodeItem Interfejs

Definicja

Przestroga

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.

Reprezentuje element kodu, który ma zostać skompilowany przez aparat skryptów.

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
Pochodne
Atrybuty
Implementuje

Uwagi

Określony element kodu może zawierać klasy, moduły lub inny tekst źródłowy.

Do wywoływania żadnych elementów członkowskich interfejsu IVsaCodeItem nie są wymagane żadne uprawnienia.

Aparat skryptów implementuje ten interfejs w celu dodania elementów kodu.

Właściwości

CodeDOM
Przestarzałe.

Pobiera model obiektu dokumentu kodu (CodeDOM) reprezentowany w elemencie kodu.

IsDirty
Przestarzałe.

Zwraca wartość wskazującą, czy bieżąca reprezentacja elementu w pamięci różni się od utrwalonej reprezentacji.

(Odziedziczone po IVsaItem)
ItemType
Przestarzałe.

Pobiera typ określonego obiektu określony zgodnie z CreateItem(String, VsaItemType, VsaItemFlag) metodą .

(Odziedziczone po IVsaItem)
Name
Przestarzałe.

Pobiera lub ustawia nazwę elementu.

(Odziedziczone po IVsaItem)
SourceText
Przestarzałe.

Pobiera lub ustawia tekst określonego elementu kodu, w tym automatycznie generowany kod, jeśli istnieje.

Metody

AddEventSource(String, String)
Przestarzałe.

Dodaje źródło zdarzeń do elementu kodu. Element kodu używa źródła zdarzeń, aby podłączyć zdarzenie do nazwanego źródła zdarzeń przez wywołanie metody IVsaSite.GetEventSourceInstance, która jest implementowana przez hosta.

AppendSourceText(String)
Przestarzałe.

Dołącza określony tekst na końcu elementu kodu.

GetOption(String)
Przestarzałe.

Pobiera opcje specyficzne dla implementacji aparatu skryptów.

(Odziedziczone po IVsaItem)
RemoveEventSource(String)
Przestarzałe.

Usuwa określone źródło zdarzeń z elementu kodu.

SetOption(String, Object)
Przestarzałe.

Ustawia opcje specyficzne dla implementacji aparatu skryptów.

(Odziedziczone po IVsaItem)

Dotyczy