C# Класс Upac.GoogleSiteSearch.GoogleSiteSearch

Represents and handles a single Google SiteSearch query.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void

Disposes the Google SiteSearch query.

GoogleSiteSearch ( string query ) : System

Initializes a new instance of the GoogleSiteSearch class.

GoogleSiteSearch ( string query, string site ) : System

Initializes a new instance of the GoogleSiteSearch class.

Search ( string start, string pageSize ) : List

Performs the search, and returns the results in the range from the start and to the page size index.

Защищенные методы

Метод Описание
DoSearch ( string url ) : string

Does the search.

FormatQueryString ( string cx, string query, string start, string pageSize, string site ) : string

Formats the query string.

ParseResult ( string data ) : GoogleSiteSearchParserResult

Parses the result.

Описание методов

Dispose() публичный Метод

Disposes the Google SiteSearch query.
public Dispose ( ) : void
Результат void

DoSearch() защищенный Метод

Does the search.
protected DoSearch ( string url ) : string
url string The URL.
Результат string

FormatQueryString() защищенный Метод

Formats the query string.
protected FormatQueryString ( string cx, string query, string start, string pageSize, string site ) : string
cx string The cx.
query string The query.
start string The start.
pageSize string Size of the page.
site string
Результат string

GoogleSiteSearch() публичный Метод

Initializes a new instance of the GoogleSiteSearch class.
public GoogleSiteSearch ( string query ) : System
query string Query to search for in the google site search index.
Результат System

GoogleSiteSearch() публичный Метод

Initializes a new instance of the GoogleSiteSearch class.
public GoogleSiteSearch ( string query, string site ) : System
query string Query to search for in the google site search index.
site string
Результат System

ParseResult() защищенный Метод

Parses the result.
protected ParseResult ( string data ) : GoogleSiteSearchParserResult
data string The data.
Результат GoogleSiteSearchParserResult

Search() публичный Метод

Performs the search, and returns the results in the range from the start and to the page size index.
public Search ( string start, string pageSize ) : List
start string Index of where in the total result to return results.
pageSize string Number of results to return.
Результат List