ScopeCollection.Create Method

Creates a new scope.

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


Public Function Create ( _
    name As String, _
    description As String, _
    owningSiteUrl As Uri, _
    displayInAdminUI As Boolean, _
    alternateResultsPage As String, _
    compilationType As ScopeCompilationType _
) As Scope
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


  • 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 Shared Service Provider 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


ScopeCollection Class

ScopeCollection Members

Microsoft.Office.Server.Search.Administration Namespace

Other Resources

Working with Search Scopes