Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

WebRequest.SearchTags Property (Bing, Version 2.1)


Specifies name and value combinations for which to search within the HTML <meta> tag. Only pages that contain these combinations will be returned.

<XmlArrayItemAttribute(IsNullable=False)> _  
Public Property SearchTags() As String()
End Property

The format for the property is WebRequest.SearchTags = “Search.Name:Value

For example, if you specify WebRequest.SearchTags = “Search.Interest:Biking”, the response would include pages that contain <meta name="Search.Interest" content="Mountain Biking">, pages that contain <meta name="Search.Interest" content="Road Biking"> and any other pages for which the meta tag specifies a content value that includes biking.

If you wanted to restrict returned pages to only those that include Road Biking, include \ characters:

WebRequest.SearchTags = “Search.Interest:\”Road Biking\””

This property is often used by owners of multiple sites. For example, if you want to send a request that returns results from multiple sites, you could:

  1. Include the appropriate name and content combinations in meta tags on pages across sites.

  2. Include the corresponding WebRequest.SearchTags Name and Value combinations in a request.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.