Share via


Query.EnableNicknames property

NOTE: This API is now obsolete.

Gets or sets a Boolean value that specifies whether the exact terms in the search query are used to find matches, or if nicknames are used as well.

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

Syntax

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

value = instance.EnableNicknames

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

Property value

Type: System.Boolean
true if nicknames are used; otherwise, false, if the exact terms are used. The default value is false.

See also

Reference

Query class

Query members

Microsoft.SharePoint.Search.Query namespace