IVsaCodeItem.SourceText Property

Definition

Gets or sets the text of a specified code item, including auto-generated code, if any.

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

Property Value

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.

Applies to