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)
Syntax
'Declaration
Public Property Web As Boolean
Get
Set
'Usage
Dim instance As SPChangeQuery
Dim value As Boolean
value = instance.Web
instance.Web = value
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;