This topic has not yet been rated - Rate this topic

SPItemEventProperties.Web Property

SharePoint 2010

Gets the parent Web site of the list associated with the event that occurred.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public SPWeb Web { get; }

Property Value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the parent Web site of the list associated with the event.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
do not dispose this
if you use properties.Web the properties.Dispose() will Dispose the web and the site.
If you use properties.OpenWeb you have to Dispose the web.