Bagikan melalui


IVsaCodeItem Antarmuka

Definisi

Perhatian

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.

Mewakili item kode yang akan dikompilasi oleh mesin skrip.

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
Turunan
Atribut
Penerapan

Keterangan

Item kode yang ditentukan dapat berisi kelas, modul, atau teks sumber lainnya.

Tidak ada izin yang diperlukan untuk memanggil anggota antarmuka IVsaCodeItem.

Mesin skrip mengimplementasikan antarmuka ini untuk menambahkan item kode.

Properti

CodeDOM
Kedaluwarsa.

Mendapatkan model objek dokumen kode (CodeDOM) yang diwakili dalam item kode.

IsDirty
Kedaluwarsa.

Mengembalikan nilai yang menunjukkan apakah representasi dalam memori saat ini dari item berbeda dari representasi yang bertahan.

(Diperoleh dari IVsaItem)
ItemType
Kedaluwarsa.

Mendapatkan jenis objek yang ditentukan, seperti yang ditentukan oleh CreateItem(String, VsaItemType, VsaItemFlag) metode .

(Diperoleh dari IVsaItem)
Name
Kedaluwarsa.

Mendapatkan atau mengatur nama item.

(Diperoleh dari IVsaItem)
SourceText
Kedaluwarsa.

Mendapatkan atau mengatur teks item kode tertentu, termasuk kode yang dibuat secara otomatis, jika ada.

Metode

AddEventSource(String, String)
Kedaluwarsa.

Menambahkan sumber peristiwa ke item kode. Item kode menggunakan sumber peristiwa untuk menghubungkan peristiwa ke sumber peristiwa bernama dengan memanggil metode IVsaSite.GetEventSourceInstance, yang diimplementasikan oleh host.

AppendSourceText(String)
Kedaluwarsa.

Menambahkan teks tertentu ke akhir item kode.

GetOption(String)
Kedaluwarsa.

Mendapatkan opsi khusus implementasi untuk mesin skrip.

(Diperoleh dari IVsaItem)
RemoveEventSource(String)
Kedaluwarsa.

Menghapus sumber peristiwa yang ditentukan dari item kode.

SetOption(String, Object)
Kedaluwarsa.

Mengatur opsi khusus implementasi untuk mesin skrip.

(Diperoleh dari IVsaItem)

Berlaku untuk