ScopeCollection.Create, méthode (Microsoft.Office.Server.Search.Administration)
Creates a new scope.
Espace de noms : Microsoft.Office.Server.Search.Administration
Assembly : Microsoft.Office.Server.Search (dans microsoft.office.server.search.dll)
Syntaxe
'Déclaration
Public Function Create ( _
name As String, _
description As String, _
owningSiteUrl As Uri, _
displayInAdminUI As Boolean, _
alternateResultsPage As String, _
compilationType As ScopeCompilationType _
) As Scope
'Utilisation
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
)
Paramètres
- name
A string specifying the scope name.
- description
A string specifying the scope description.
- owningSiteUrl
A System.Uri object representing the owning site URL.
- displayInAdminUI
true to display the scope in the Shared Service Provider Administrator user interface; otherwise, false.
- alternateResultsPage
A string specifying the alternate results page for the scope.
- compilationType
A value from the ScopeCompilationType enumeration specifying the type of scope compilation.
Valeur de retour
A Scope object.
Voir aussi
Référence
ScopeCollection, classe
Membres ScopeCollection
Microsoft.Office.Server.Search.Administration, espace de noms