Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IPortalSearchRequest.SetLanguage Method

Sets the language that the query string will be interpreted in.

void SetLanguage(
string language,
bool limitByLocale
);

#### Parameters

language
  Language that the query string will be interpreted in, e.g. "en" or "fr". The language code must be at least two characters in length The list of languages is listed in SearchLocales.xml, which is located in $PT_HOME\ptsearchlib\5.0\settings\config
limitByLocale
  true to limit the search request to the search user's locale

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentException | if language is less than two characters

#### See Also

IPortalSearchRequest Interface | Plumtree.Remote.PRC.Search Namespace