Share via


IVsaCodeItem.AppendSourceText Method

Appends specified text to the end of the code item.

public: void AppendSourceText( 
   String*  Text
);
public void AppendSourceText( 
   string  Text
);
MustOverride Public Sub AppendSourceText( _ 
   ByVal Text As String _
)

Parameters

  • text
    The text to be appended to the code item.

Remarks

Appended source text is not subjected to validation. For this reason, errors, if any, will surface on the next call to the IVsaEngine.Compile method.

The appended source text is provided as a single string. Should the string require any formatting, you must provide this yourself.

The following table shows the exceptions that the AppendSourceText method can throw.

Exception Type

Condition

EngineClosed

The IVsaEngine.Close method has been called and the engine is closed.

EngineBusy

The engine is currently executing code for another thread.

EngineRunning

The engine is running.

See Also

Reference

IVsaCodeItem Interface

IVsaEngine.Compile Method