QueryRuleCollection.CreateQueryRule 方法

命名空间:  Microsoft.Office.Server.Search.Query.Rules
程序集:  Microsoft.Office.Server.Search(位于 Microsoft.Office.Server.Search.dll 中)

语法

声明
Public Function CreateQueryRule ( _
    displayName As String, _
    startDate As Nullable(Of DateTime), _
    endDate As Nullable(Of DateTime), _
    active As Boolean _
) As QueryRule
用法
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
)

参数

返回值

类型:Microsoft.Office.Server.Search.Query.Rules.QueryRule

另请参阅

引用

QueryRuleCollection 类

QueryRuleCollection 成员

Microsoft.Office.Server.Search.Query.Rules 命名空间