SPItemEventProperties.OpenWeb Method
Retrieves the Web site that is 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
Syntax
'Declaration
Public Function OpenWeb As SPWeb
'Usage
Dim instance As SPItemEventProperties
Dim returnValue As SPWeb
returnValue = instance.OpenWeb()
public SPWeb OpenWeb()
Return Value
Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the site associated with the event.