Dela via


QueryContext Class

Definition

Defines the query context that Bing used for the request.

public class QueryContext
type QueryContext = class
Public Class QueryContext
Inheritance
QueryContext

Constructors

QueryContext()

Initializes a new instance of the QueryContext class.

QueryContext(String, String, String, Nullable<Boolean>)

Initializes a new instance of the QueryContext class.

Properties

AdultIntent

Gets a Boolean value that indicates whether the specified query has adult intent. The value is true if the query has adult intent; otherwise, false.

AlterationOverrideQuery

Gets the query string to use to force Bing to use the original string. For example, if the query string is "saling downwind", the override query string will be "+saling downwind". Remember to encode the query string which results in "%2Bsaling+downwind". This field is included only if the original query string contains a spelling mistake.

AlteredQuery

Gets the query string used by Bing to perform the query. Bing uses the altered query string if the original query string contained spelling mistakes. For example, if the query string is "saling downwind", the altered query string will be "sailing downwind". This field is included only if the original query string contains a spelling mistake.

OriginalQuery

Gets or sets the query string as specified in the request.

Methods

Validate()

Validate the object.

Applies to