Compartilhar via


QueryRuleCollection.CreateQueryRule method

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

Syntax

'Declaração
Public Function CreateQueryRule ( _
    displayName As String, _
    startDate As Nullable(Of DateTime), _
    endDate As Nullable(Of DateTime), _
    active As Boolean _
) As QueryRule
'Uso
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
)

Parâmetros

Valor retornado

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

Ver também

Referência

QueryRuleCollection class

QueryRuleCollection members

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