GoogleSearchGetSearchResultAsync Method
Asynchronously searches the World Wide Web using Google Search service with the specified search options.
Namespace: DevCase.ThirdParty.Google.SearchAssembly: DevCase.net48.ThirdParty.GoogleServices (in DevCase.net48.ThirdParty.GoogleServices.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
No code example is currently available or this language may not be supported.
- searchOptions GoogleSearchOptions
-
The search options to use with the Google Search service.
TaskListGoogleSearchResult
A
ListT that represents the search results.
This is a code example.
No code example is currently available or this language may not be supported.
Dim searchOptions As New GoogleSearchOptions With {
.SearchTerm = "Hello World",
.Language = GoogleLanguage.EN,
.NumberOfResults = GoogleSearchOptions.MaxNumberOfResults,
.FilterResults = False,
.InputEncoding = Encoding.GetEncoding("ISO-8859-1"),
.OutputEncoding = Encoding.GetEncoding("ISO-8859-1")
}
Dim searchResults As List(Of GoogleSearchResult) = Await GetSearchResultAsync(searchOptions)
Dim resultCount As Integer
For Each result As GoogleSearchResult In searchResults
Console.WriteLine("[{0:000}] Url: {1}; Title: {2}; Description: {3}", Interlocked.Increment(resultCount), result.Url, result.Title, result.Description)
Next result
Console.WriteLine("Finished.")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.