SPChangeQuery.Web Property

Gets or sets a Boolean value that specifies whether changes to SPWeb objects are included in the query.

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

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property Web As Boolean
    Get
    Set
'Usage
Dim instance As SPChangeQuery
Dim value As Boolean

value = instance.Web

instance.Web = value
[ClientCallableAttribute]
public bool Web { get; set; }

Property Value

Type: System.Boolean
true to include changes to SPWeb objects; otherwise, false. The default is false.

Remarks

You can limit the results of the query to particular types of changes to SPWeb objects by setting corresponding properties of the SPChangeQuery object. For example, the following code constructs a query for changes that add roles to Web sites.

Dim query As New SPChangeQuery(False, False)

' object type
query.Web = True

' change type
query.RoleDefinitionAdd = True
SPChangeQuery query = new SPChangeQuery(false, false);

// object type
query.Web = true;

// change type
query.RoleDefinitionAdd = true;

To include all changes to Web sites, pass true as the constructor's second argument.

Dim query As New SPChangeQuery(False, True)

' object type
query.Web = True
SPChangeQuery query = new SPChangeQuery(false, true);

// object type
query.Web = true; 

See Also

Reference

SPChangeQuery Class

SPChangeQuery Members

Microsoft.SharePoint Namespace

SPChangeWeb