IVsaCodeItem.SourceText Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Sets or gets the text of a specified code item, including auto-generated code, if any.
Namespace: Microsoft.Vsa
Assembly: Microsoft.Vsa (in Microsoft.Vsa.dll)
Syntax
'Declaration
Property SourceText As String
string SourceText { get; set; }
property String^ SourceText {
String^ get ();
void set (String^ value);
}
abstract SourceText : string with get, set
function get SourceText () : String
function set SourceText (value : String)
Property Value
Type: System.String
Returns the source text of the code item.
Remarks
When you set this property, the text is not subjected to validation. For this reason, errors, if any, will surface on the next call to the IVsaEngine.Compile method.
The SourceText property returns the source text in one large string, including formatting characters such as carriage returns.
To get this property the engine must not be closed. To set this property the engine must not be closed, and the engine must not be running.