SearchBox.ContextSensitiveScopeType, propriété (Microsoft.SharePoint.Portal.WebControls)
Cette classe ou ce membre est désapprouvé. Lorsque vous mettez à niveau ou écrivez de nouvelles applications qui utilisent cette classe ou ce membre, utilisez la nouvelle classe ou le nouveau membre à la place. For Recherche de contenu d'entreprise dans Microsoft Office SharePoint Server 2007, use the Microsoft.SharePoint.PortalWebControls.SearchBoxEx instead. Gets or sets additional restrictions on the scope for the query run by this Web Part.
Espace de noms : Microsoft.SharePoint.Portal.WebControls
Assembly : Microsoft.SharePoint.Portal (dans microsoft.sharepoint.portal.dll)
Syntaxe
'Déclaration
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ContextSensitiveScopeType As Integer
'Utilisation
Dim instance As SearchBox
Dim value As Integer
value = instance.ContextSensitiveScopeType
instance.ContextSensitiveScopeType = value
[BrowsableAttribute(false)]
[WebPartStorageAttribute(Storage.Shared)]
public int ContextSensitiveScopeType { get; set; }
Valeur de la propriété
A 32-bit signed integer search scope for this Web Part. The default value is zero.
Remarques
The ContextSensitiveScopeType property is read/write. Setting this property allows you to restrict the scope for the query run by this Web Part to the specified context in the user interface (UI).
The following table describes the valid values for this property.
Scope type |
Description |
---|---|
0 |
No restrictions on search scope. |
1 |
Sets search scope to the current area and its subareas. "This topic" is added to the search scopes list. |
2 |
Sets search scope to the current folder. "This folder" is added to the search scope list. |
3 |
Sets search scope to the current personal site or user profile. "This personal site" is added to the search scope list. |
4 |
Sets search scope to the sites directory. When this value is set, the search engine searches the metadata for sites in the sites directory. |
All negative input is reset to zero.
Voir aussi
Référence
SearchBox, classe
Membres SearchBox
Microsoft.SharePoint.Portal.WebControls, espace de noms