Bing Class
Provides search capabilities for a Web page.
Inheritance Hierarchy
System.Object
Microsoft.Web.Helpers.Bing
Namespace: Microsoft.Web.Helpers
Assembly: Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)
Syntax
'Declaration
Public NotInheritable Class Bing
'Usage
You do not need to declare an instance of a static class in order to access its members.
public static class Bing
public ref class Bing abstract sealed
public final class Bing
The Bing type exposes the following members.
Properties
Name | Description | |
---|---|---|
SiteTitle | Gets or sets the title of the search tab. | |
SiteUrl | Gets or sets the site to search. |
Top
Methods
Name | Description | |
---|---|---|
AdvancedSearchBox | Displays a search box and returns results in the Web page. | |
SearchBox | Displays a search box and displays results in a new browser window. |
Top
Remarks
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 www.Bing.com 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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.