DefaultInterpolatedStringHandler.ToStringAndClear Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the built String and clears the handler.
public:
System::String ^ ToStringAndClear();
public string ToStringAndClear ();
member this.ToStringAndClear : unit -> string
Public Function ToStringAndClear () As String
Returns
The built string.
Remarks
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.