SourceType Enumeration (Search)

The type of a single SourceRequest object that represents an information resource to be searched.

public enum SourceType
Members

 

Member name Description

Ads

Specifies a SourceRequest object that returns advertisement results.

Reserved for future use.

Image

Specifies a SourceRequest object that returns full-size image and thumbnail image information, including the file size in bytes (if available), height and width in pixels (if available), and the URI to the full-size image or thumbnail.

InlineAnswers

Specifies a SourceRequest object that returns answer results. The result fields returned for search requests for InlineAnswers vary based on the type of answer requested. To ensure that your application returns all of the information provided, set the ResultFields field of the SourceRequest object to ResultFieldMask.All.

InlineAnswers types include Encarta, Finance, Sports, Weather, and Movie ShowTimes.

Reserved for users having an explicit contract with Microsoft. For more information, please contact api_tou@microsoft.com.

News

Specifies a SourceRequest object that returns results from online news services.

PhoneBook

Specifies a SourceRequest object that returns results from online White Pages (residential) and Yellow Pages (commercial) entries.

QueryLocation

Specifies a SourceRequest object that returns the location of a local query, based on the query input. For example, a local query of the form "pizza new york" returns "pizza" in the Title field, "New York, NY" in the Description field, and the latitude and longitude of the geographic center of the city in the Location.Latitude and Location.Longitude fields, respectively, for eight markets.

A local query of the form "coffee 98052" returns "coffee" in the Title field, "98052" in the Description field, and the latitude and longitude of the geographic center of the ZIP Code in the Location.Latitude and Location.Longitude fields, respectively, for postal codes in US markets only.

Spelling

Specifies a SourceRequest object that returns spelling suggestions. A SourceRequest object of SourceType.Spelling returns one result per call (that is, per SearchRequest) in the Title field of the result. Although the mask ResultFieldMask.Title is the most efficient setting to use, SourceType.Spelling also returns the expected result, a string in the Title field, when set to ResultFieldMask.All.

Video

Specifies a SourceRequest object that returns video results.

Reserved for users having an explicit contract with Microsoft. For more information, please contact api_tou@microsoft.com

Web

Specifies a SourceRequest object that returns Web page results.

WordBreaker

Reserved for future use.

Remarks

The results of each SourceType specification are query-dependent. For example, SourceType.Spelling will only return a result if a spelling error is detected in the query string. QueryLocation responds to local queries of the form keyword, place name or keyword, ZIP Code only. PhoneBook results are returned for local queries and location-aware queries (queries for which a Location object is specified). InlineAnswers are returned only for the types subscribed to by users having an explicit contract with Microsoft. To experiment with different queries, and for an example that uses all supported SourceTypes, see the Comprehensive Windows Forms Application (C#) topic.

Page view tracker