共用方式為


IVsaCodeItem.AppendSourceText(String) 方法

定義

將指定的文字附加至程式碼項目結尾。

public:
 void AppendSourceText(System::String ^ text);
public void AppendSourceText (string text);
abstract member AppendSourceText : string -> unit
Public Sub AppendSourceText (text As String)

參數

text
String

要附加至程式碼項目的文字。

備註

附加的來源文字不受驗證限制。 基於這個理由,如果有任何錯誤,則會在下一次呼叫 IVsaEngine.Compile 方法時出現。

附加的來源文字會以單一字串的形式提供。 如果字串需要任何格式設定,您必須自行提供。

適用於