IVsaCodeItem.SourceText 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定指定程式碼項目的文字,包含任何自動產生的程式碼。
public:
property System::String ^ SourceText { System::String ^ get(); void set(System::String ^ value); };
public string SourceText { get; set; }
member this.SourceText : string with get, set
Public Property SourceText As String
屬性值
程式代碼專案的來源文字。
備註
當您設定此屬性時,文字不會受限於驗證。 因此,如果有任何錯誤,將會在下一次呼叫 IVsaEngine.Compile 方法時出現。
SourceText 屬性會傳回一個大型字串中的源文字,包括格式化字元,例如歸位字元。
若要取得此屬性,引擎不得關閉。 若要設定此屬性,引擎不得關閉,而且引擎不得執行。