Query.Culture property

NOTE: This API is now obsolete.

Gets or sets the locale for the query.

Namespace:  Microsoft.SharePoint.Search.Query
Assembly:  Microsoft.SharePoint.Search (in Microsoft.SharePoint.Search.dll)

Syntax

'Declaration
<ObsoleteAttribute("This class is obsolete.")> _
Public Property Culture As CultureInfo
    Get
    Set
'Usage
Dim instance As Query
Dim value As CultureInfo

value = instance.Culture

instance.Culture = value
[ObsoleteAttribute("This class is obsolete.")]
public CultureInfo Culture { get; set; }

Property value

Type: System.Globalization.CultureInfo
A System.Globalization.CultureInfo object that specifies the locale ID.

Remarks

The query engine uses the locale to interpret the query words, and to determine the wordbreaker, stemmer, thesaurus, and other language-sensitive components to use.

See also

Reference

Query class

Query members

Microsoft.SharePoint.Search.Query namespace