Compartir a través de


del método QueryRuleCollection.CreateQueryRule

Espacio de nombres:  Microsoft.Office.Server.Search.Query.Rules
Ensamblado:  Microsoft.Office.Server.Search (en Microsoft.Office.Server.Search.dll)

Sintaxis

'Declaración
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 devuelto

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

Vea también

Referencia

clase QueryRuleCollection

Miembros QueryRuleCollection

Espacio de nombres Microsoft.Office.Server.Search.Query.Rules