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
- displayName
Type : System.String
- startDate
Type : System.Nullable<DateTime>
- endDate
Type : System.Nullable<DateTime>
- active
Type : System.Boolean
Valeur renvoyée
Type : Microsoft.Office.Server.Search.Query.Rules.QueryRule