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
name
Type: System.StringA string specifying the scope name.
description
Type: System.StringA string specifying the scope description.
owningSiteUrl
Type: System.UriA System.Uri object representing the owning site URL.
displayInAdminUI
Type: System.Booleantrue to display the scope in the Search Administrator user interface; otherwise, false.
alternateResultsPage
Type: System.StringA string specifying the alternate results page for the scope.
compilationType
Type: Microsoft.Office.Server.Search.Administration.ScopeCompilationTypeA value from the ScopeCompilationType enumeration specifying the type of scope compilation.
Return Value
Type: Microsoft.Office.Server.Search.Administration.Scope
A Scope object.