DefaultInterpolatedStringHandler.ToStringAndClear Method


Gets the built String and clears the handler.

 System::String ^ ToStringAndClear();
public string ToStringAndClear ();
member this.ToStringAndClear : unit -> string
Public Function ToStringAndClear () As String


The built string.


This releases any resources used by the handler. The method should be invoked only once and as the last thing performed on the handler. Subsequent use is erroneous, ill-defined, and may destabilize the process, as may using any other copies of the handler after ToStringAndClear is called on any one of them.

Applies to