Web class
Class representing a Web.
Constructors
Web(Web |
Create a Web. |
Methods
search(string, Service |
|
search(string, Web |
|
search(string, Web |
Constructor Details
Web(WebSearchClientContext)
Create a Web.
new Web(client: WebSearchClientContext)
Parameters
- client
- WebSearchClientContext
Reference to the service client.
Method Details
search(string, ServiceCallback<SearchResponse>)
function search(query: string, callback: ServiceCallback<SearchResponse>)
Parameters
- query
-
string
The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.
- callback
The callback
search(string, WebSearchOptionalParams)
function search(query: string, options?: WebSearchOptionalParams): Promise<WebSearchResponse>
Parameters
- query
-
string
The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.
- options
- WebSearchOptionalParams
The optional parameters
Returns
Promise<WebSearchResponse>
Promise<Models.WebSearchResponse>
search(string, WebSearchOptionalParams, ServiceCallback<SearchResponse>)
function search(query: string, options: WebSearchOptionalParams, callback: ServiceCallback<SearchResponse>)
Parameters
- query
-
string
The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.
- options
- WebSearchOptionalParams
The optional parameters
- callback
The callback