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
name
Type: System.StringThe scope name.
description
Type: System.StringThe scope description.
owningSiteUrl
Type: System.UriThe owning site URL.
displayInAdminUI
Type: System.Booleantrue to display the scope in the Search Administrator user interface; otherwise, false.
alternateResultsPage
Type: System.StringThe alternate results page URL.
compilationType
Type: Microsoft.Office.Server.Search.Administration.ScopeCompilationTypeThe scope compilation type.
- filter
Type: System.String
Return value
Type: Microsoft.Office.Server.Search.Administration.Scope
The scope that was created.