C# Class Upac.GoogleSiteSearch.GoogleSiteSearch

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

Disposes the Google SiteSearch query.
public Dispose ( ) : void
Résultat void

DoSearch() protected méthode

Does the search.
protected DoSearch ( string url ) : string
url string The URL.
Résultat string

FormatQueryString() protected méthode

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
Résultat string

GoogleSiteSearch() public méthode

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.
Résultat System

GoogleSiteSearch() public méthode

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
Résultat System

ParseResult() protected méthode

Parses the result.
protected ParseResult ( string data ) : GoogleSiteSearchParserResult
data string The data.
Résultat GoogleSiteSearchParserResult

Search() public méthode

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.
Résultat List