IVsaCodeItem インターフェイス

メモ: この API は、互換性のために残されています。

スクリプト エンジンでコンパイルするコード項目を表します。

名前空間:  Microsoft.Vsa
アセンブリ:  Microsoft.Vsa (Microsoft.Vsa.dll 内)

構文

'宣言
<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

IVsaCodeItem 型で公開されるメンバーは以下のとおりです。

プロパティ

  名前 説明
パブリック プロパティ CodeDOM コード項目で表現される CodeDOM (Code Document Object Model) を取得します。
パブリック プロパティ IsDirty 項目の現在のメモリ上の表現が、永続化された表現と異なっているかどうかを示す値を返します。 (IVsaItem から継承されます。)
パブリック プロパティ ItemType 指定したオブジェクトの型を取得します。オブジェクトの型は、IVsaItems.CreateItem Method メソッドで決定されています。 (IVsaItem から継承されます。)
パブリック プロパティ Name 項目の名前を設定または取得します。 (IVsaItem から継承されます。)
パブリック プロパティ SourceText 指定したコード項目のテキストを設定または取得します。自動生成されたコードがある場合は、これも含めます。

このページのトップへ

メソッド

  名前 説明
パブリック メソッド AddEventSource イベント ソースをコード項目に追加します。コード項目はイベント ソースを使用し、ホストで実装された IVsaSite.GetEventSourceInstance メソッドを呼び出して、イベントを指定したイベント ソースにフックします。
パブリック メソッド AppendSourceText 指定したテキストをコード 項目の末尾に追加します。
パブリック メソッド GetOption スクリプト エンジンの実装固有のオプションを取得します。 (IVsaItem から継承されます。)
パブリック メソッド RemoveEventSource 指定したイベント ソースをコード項目から削除します。
パブリック メソッド SetOption スクリプト エンジンの実装固有のオプションを設定します。 (IVsaItem から継承されます。)

このページのトップへ

解説

コードの指定した項目の追加、クラス、モジュール、またはその他のソース テキストを含めることができます。

IVsaCodeItem インターフェイスのすべてのメンバーを呼び出すために必要なアクセス許可はありません。

スクリプト エンジンは、コードの項目を追加するためにこのインターフェイスを実装します。

参照

関連項目

Microsoft.Vsa 名前空間