C# Class Upac.GoogleSiteSearch.GoogleSiteSearch

Represents and handles a single Google SiteSearch query.
Inheritance: IDisposable
Mostra file Open project: 1508/upac-for-umbraco Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Method Details

Dispose() public method

Disposes the Google SiteSearch query.
public Dispose ( ) : void
return void

DoSearch() protected method

Does the search.
protected DoSearch ( string url ) : string
url string The URL.
return string

FormatQueryString() protected method

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
return string

GoogleSiteSearch() public method

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.
return System

GoogleSiteSearch() public method

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
return System

ParseResult() protected method

Parses the result.
protected ParseResult ( string data ) : GoogleSiteSearchParserResult
data string The data.
return GoogleSiteSearchParserResult

Search() public method

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.
return List