Compartir a través de


: SearchBox.ContextSensitiveScopeType (Propiedad) (Microsoft.SharePoint.Portal.WebControls)

Este miembro o clase no se admite. Cuando actualice una aplicación o escriba aplicaciones nuevas que hagan uso de este miembro o clase, use en su lugar el miembro o clase nuevo. For Enterprise Search de 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.

Espacio de nombres:
Ensamblado: Microsoft.SharePoint.Portal (in microsoft.sharepoint.portal.dll)

Sintaxis

'Declaración
<BrowsableAttribute(False)> _
<WebPartStorageAttribute(Storage.Shared)> _
Public Property ContextSensitiveScopeType As Integer
'Uso
Dim instance As SearchBox
Dim value As Integer

value = instance.ContextSensitiveScopeType

instance.ContextSensitiveScopeType = value
[BrowsableAttribute(false)] 
[WebPartStorageAttribute(Storage.Shared)] 
public int ContextSensitiveScopeType { get; set; }

Valor de propiedad

A 32-bit signed integer search scope for this Web Part. The default value is zero.

Comentarios

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.

Vea también

Referencia

SearchBox (Clase)
SearchBox (Miembros)
Microsoft.SharePoint.Portal.WebControls (Espacio de nombres)