RetainContext Property

English Query

English Query

RetainContext Property

Retains user context between questions for the Session object.

Applies To

Session Object

Syntax

Session.RetainContext [= value]

Parts

Session

An object variable that represents a Session object.

value

A Boolean value that can set or return a value.

Value Description
TRUE User context is saved between questions. This is the default.
FALSE User context is not saved between questions.
Remarks

This property is read-write. If the user context is saved, declarative statements that a user makes are retained (for example an active person is one who exercises five days a week). The most recent questions are also retained so that users can refer to them while asking additional question. For example, a user could ask "Show sales for 1997", and then follow it with questions such as "Include the products", and "Sort by month". The results would all be for the sales in 1997 without the user repeating the original question. Users can also ask follow-up questions with pronoun references and ellipses (for example, "Who is the oldest salesperson" followed by "How much did he make" "Show sales in the Los Angeles branch", or "New York").

See Also

ClarifySpellingErrors Property

DomainInfo Object

InitDomain Method

ParseRequest Method