ScopeCollection.Create method (String, String, Uri, Boolean, String, ScopeCompilationType, String)

Creates a new scope.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Function Create ( _
    name As String, _
    description As String, _
    owningSiteUrl As Uri, _
    displayInAdminUI As Boolean, _
    alternateResultsPage As String, _
    compilationType As ScopeCompilationType, _
    filter As String _
) As Scope
'Usage
Dim instance As ScopeCollection
Dim name As String
Dim description As String
Dim owningSiteUrl As Uri
Dim displayInAdminUI As Boolean
Dim alternateResultsPage As String
Dim compilationType As ScopeCompilationType
Dim filter As String
Dim returnValue As Scope

returnValue = instance.Create(name, description, _
    owningSiteUrl, displayInAdminUI, _
    alternateResultsPage, compilationType, _
    filter)
public Scope Create(
    string name,
    string description,
    Uri owningSiteUrl,
    bool displayInAdminUI,
    string alternateResultsPage,
    ScopeCompilationType compilationType,
    string filter
)

Parameters

  • owningSiteUrl
    Type: System.Uri

    The owning site URL.

  • displayInAdminUI
    Type: System.Boolean

    true to display the scope in the Search Administrator user interface; otherwise, false.

  • alternateResultsPage
    Type: System.String

    The alternate results page URL.

Return value

Type: Microsoft.Office.Server.Search.Administration.Scope
The scope that was created.

See also

Reference

ScopeCollection class

ScopeCollection members

Create overload

Microsoft.Office.Server.Search.Administration namespace