Bing.SiteUrl Property
Gets or sets the site to search.
Namespace: Microsoft.Web.Helpers
Assembly: Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)
Syntax
'Declaration
Public Shared Property SiteUrl As String
Get
Set
'Usage
Dim value As String
value = Bing.SiteUrl
Bing.SiteUrl = value
public static string SiteUrl { get; set; }
public:
static property String^ SiteUrl {
String^ get ();
void set (String^ value);
}
static function get SiteUrl () : String
static function set SiteUrl (value : String)
Property Value
Type: System.String
Returns the site URL.
Remarks
If you specify the SiteUrl property when you call the SiteUrl method, the Bing class renders two radio buttons below the search box. These radio buttons enable the user to specify whether to search only the site specified by the SiteUrl property or the Web in general. When the user submits the search, the SiteUrl method redirects the search to the Bing site (https://bing.com). The results are displayed in a new browser window, as if the user had entered the search term in the Bing home page.
If you specify the SiteUrl property when you call the SiteUrl method, the results show tabs (for the site and for Web) so that the user can flip back and forth between a site-specific search and a general Web search.
Permissions
- Medium trust for the immediate caller. This member can be used by partially trusted code.