UserSegmentCollection.CreateUserSegment - Méthode
Ajoute un meilleur résultat à la collection.
Espace de noms : Microsoft.Office.Server.Search.Query.Rules
Assembly : Microsoft.Office.Server.Search (dans Microsoft.Office.Server.Search.dll)
Syntaxe
'Déclaration
Public Function CreateUserSegment ( _
displayName As String, _
description As String, _
deleteIfUnused As Boolean _
) As UserSegment
'Utilisation
Dim instance As UserSegmentCollection
Dim displayName As String
Dim description As String
Dim deleteIfUnused As Boolean
Dim returnValue As UserSegment
returnValue = instance.CreateUserSegment(displayName, _
description, deleteIfUnused)
public UserSegment CreateUserSegment(
string displayName,
string description,
bool deleteIfUnused
)
Paramètres
- displayName
Type : System.String
- description
Type : System.String
- deleteIfUnused
Type : System.Boolean
Valeur renvoyée
Type : Microsoft.Office.Server.Search.Query.Rules.UserSegment
Exceptions
Exception | Condition |
---|---|
NotSupportedException | Levée lorsque la collection est en lecture seule |
ArgumentException | Levée lorsque les meilleurs résultats déjà existe dans la collection |