Share via


SPWeb.AllowAutomaticASPXPageIndexing Property

Gets or sets a Boolean value that specifies whether the .aspx page within the website should be indexed by the search engine.

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

Syntax

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

value = instance.AllowAutomaticASPXPageIndexing

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

Property Value

Type: System.Boolean
true to specify that the .aspx page within the website should be indexed by the search engine; otherwise, false.

Remarks

This property is initially set according to the following algorithm: if there is any list, folder, or item within the website that has role assignments that are different than the role assignments of the website itself, this property is false. Otherwise, it is true. If it is initially false, you may set it to true if you are sure that any lists with unique role assignments are not visible to the user.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace