Bing Class

Provides search capabilities for a Web page.


Namespace:  Microsoft.Web.Helpers
Assembly:  Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)

public static class Bing

The Bing type exposes the following members.

Public propertyStatic memberSiteTitleGets or sets the title of the search tab.
Public propertyStatic memberSiteUrlGets or sets the site to search.

Public methodStatic memberAdvancedSearchBoxDisplays a search box and returns results in the Web page.
Public methodStatic memberSearchBoxDisplays a search box and displays results in a new browser window.

This class represents a helper, which is a component that simplifies Web programming in ASP.NET Web Pages. You can use the Bing class to add search capabilities to your site. The Bing helper lets you configure the search to search a specific Web site (such as the current one) or to run a general search (as if the user were searching using the site).

To add search to your site, you add the Bing helper to a page and optionally specify the URL of the site to search. The Bing class renders a text box where users can enter a search term.

There are two ways to configure the search: the "simple" option using the Bing method and the "advanced" option using the Bing method.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.