Share via


IVsaCodeItem.AppendSourceText メソッド

指定したテキストをコード 項目の末尾に追加します。

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

構文

'宣言
<PermissionSetAttribute(SecurityAction.LinkDemand, Name := "FullTrust")> _
Sub AppendSourceText ( _
    text As String _
)
[PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")]
void AppendSourceText(
    string text
)
[PermissionSetAttribute(SecurityAction::LinkDemand, Name = L"FullTrust")]
void AppendSourceText(
    String^ text
)
[<PermissionSetAttribute(SecurityAction.LinkDemand, Name = "FullTrust")>]
abstract AppendSourceText : 
        text:string -> unit
function AppendSourceText(
    text : String
)

パラメーター

  • text
    型 : String

    コード項目に追加するテキスト。

解説

追加するソース テキスト検証の対象外です。 このため、エラー、存在する場合は現れます IVsaEngine.Compile メソッドに次の呼び出しで。

追加するソース テキストは、1 つの文字列として提供されます。 文字列必要があります書式設定はすべて、自分でする必要があります。

参照

関連項目

IVsaCodeItem インターフェイス

Microsoft.Vsa 名前空間