Reset Method  
 

Reset the internal state of the control.

Syntax

object.Reset

Parameters

None.

Return Value

None.

Remarks

The Reset method resets the control to its initial state. Any active connection to the service provider is closed, the conversation history is cleared, and token usage statistics for the session are reset. Property values are set back to their internal defaults. This includes clearing the current provider ID, model name, and any authentication tokens.

If a blocking operation is currently in progress, this method will fail. Applications should check the value of the IsBlocked property to determine if the client is busy before attempting to reset the session.

See Also

IsBlocked Property, IsConnected Property, Cancel Method, Initialize Method, Uninitialize Method