次の方法で共有


ScopeRuleCollection.CreateUrlRule メソッド (Microsoft.Office.Server.Search.Administration)

コンテンツ項目の表示 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
)

パラメータ

  • urlRuleType
    URL の範囲ルールの種類を指定する UrlScopeRuleType 列挙からの値。
  • matchingText
    範囲ルールの表示 URL に一致するテキストを含む文字列。

戻り値

UrlScopeRule オブジェクト。

関連項目

参照

ScopeRuleCollection クラス
ScopeRuleCollection メンバ
Microsoft.Office.Server.Search.Administration 名前空間