แก้ไข

แชร์ผ่าน


DefaultInterpolatedStringHandler.ToStringAndClear Method

Definition

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