Поделиться через


Метод ScopeRuleCollection.CreateUrlRule

Создает правило области, на основании отображения URL-адреса элемента содержимого.

Пространство имен:  Microsoft.Office.Server.Search.Administration
Сборка:  Microsoft.Office.Server.Search (в Microsoft.Office.Server.Search.dll)

Синтаксис

'Декларация
Public Function CreateUrlRule ( _
    filterBehavior As ScopeRuleFilterBehavior, _
    urlRuleType As UrlScopeRuleType, _
    matchingText As String _
) As UrlScopeRule
'Применение
Dim instance As ScopeRuleCollection
Dim filterBehavior As ScopeRuleFilterBehavior
Dim urlRuleType As UrlScopeRuleType
Dim matchingText As String
Dim returnValue As UrlScopeRule

returnValue = instance.CreateUrlRule(filterBehavior, _
    urlRuleType, matchingText)
public UrlScopeRule CreateUrlRule(
    ScopeRuleFilterBehavior filterBehavior,
    UrlScopeRuleType urlRuleType,
    string matchingText
)

Параметры

  • matchingText
    Тип: System.String

    Строка, содержащая текст для отображения URL-адреса для области действия правила сопоставления.

Возвращаемое значение

Тип: Microsoft.Office.Server.Search.Administration.UrlScopeRule
Объект UrlScopeRule .

См. также

Справочные материалы

ScopeRuleCollection класс

Элементы ScopeRuleCollection

Пространство имен Microsoft.Office.Server.Search.Administration