Partilhar via


SPWeb.NoCrawl Property

Gets or sets a Boolean value that specifies whether searching is enabled for the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property NoCrawl As Boolean
    Get
    Set
'Usage
Dim instance As SPWeb
Dim value As Boolean

value = instance.NoCrawl

instance.NoCrawl = value
public bool NoCrawl { get; set; }

Property Value

Type: System.Boolean
true if searching is not enabled; otherwise, false.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace