QueryRuleCollection.CreateQueryRule method

Namespace:  Microsoft.Office.Server.Search.Query.Rules
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function CreateQueryRule ( _
    displayName As String, _
    startDate As Nullable(Of DateTime), _
    endDate As Nullable(Of DateTime), _
    active As Boolean _
) As QueryRule
'Usage
Dim instance As QueryRuleCollection
Dim displayName As String
Dim startDate As Nullable(Of DateTime)
Dim endDate As Nullable(Of DateTime)
Dim active As Boolean
Dim returnValue As QueryRule

returnValue = instance.CreateQueryRule(displayName, _
    startDate, endDate, active)
public QueryRule CreateQueryRule(
    string displayName,
    Nullable<DateTime> startDate,
    Nullable<DateTime> endDate,
    bool active
)

Parameters

Return value

Type: Microsoft.Office.Server.Search.Query.Rules.QueryRule

See also

Reference

QueryRuleCollection class

QueryRuleCollection members

Microsoft.Office.Server.Search.Query.Rules namespace