Partager via


QueryRuleCollection.CreateQueryRule - Méthode

Espace de noms :  Microsoft.Office.Server.Search.Query.Rules
Assembly :  Microsoft.Office.Server.Search (dans Microsoft.Office.Server.Search.dll)

Syntaxe

'Déclaration
Public Function CreateQueryRule ( _
    displayName As String, _
    startDate As Nullable(Of DateTime), _
    endDate As Nullable(Of DateTime), _
    active As Boolean _
) As QueryRule
'Utilisation
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
)

Paramètres

Valeur renvoyée

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

Voir aussi

Référence

QueryRuleCollection classe

QueryRuleCollection - Membres

Microsoft.Office.Server.Search.Query.Rules - Espace de noms