Partager via


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

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 _
) 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 returnValue As Scope

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

Parameters

  • description
    Type: System.String

    A string specifying the scope description.

  • owningSiteUrl
    Type: System.Uri

    A System.Uri object representing 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

    A string specifying the alternate results page for the scope.

Return Value

Type: Microsoft.Office.Server.Search.Administration.Scope
A Scope object.

See Also

Reference

ScopeCollection Class

ScopeCollection Members

Create Overload

Microsoft.Office.Server.Search.Administration Namespace