Share via


Query.Culture Property

Gets or sets the locale for the query.

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

Syntax

'Declaration
Public Property Culture As CultureInfo
    Get
    Set
'Usage
Dim instance As Query
Dim value As CultureInfo

value = instance.Culture

instance.Culture = value
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, to determine which wordbreaker, stemmer, thesaurus, and other language-sensitive components to use.

See Also

Reference

Query Class

Query Members

Microsoft.SharePoint.Search.Query Namespace