ISearchManager::put_UserAgent Method

Sets the relevant user agent string.

Syntax

HRESULT put_UserAgent(      
    LPCWSTR pszUserAgent
);

Parameters

  • pszUserAgent
    [in]  The user agent string to set.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

A user agent is the client application, typically used to reference those applications that access the Internet. User agents can vary from web browsers to search engine crawlers, download managers, etc. A user agent may be associated with a specific protocol such as File Transfer Protocol (FTP) or Hyper Text Transfer Protocol (HTTP).

A user agent will have an agent string that it can pass to web sites or services, such as "Mozilla/4.0", that is used to identify the agent.