Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the Web site that is associated with the current Microsoft SharePoint Foundation request context. Used in conjunction with the static Current property.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaration
Public ReadOnly Property Web As SPWeb
Get
'Usage
Dim instance As SPContext
Dim value As SPWeb
value = instance.Web
public SPWeb Web { get; }
Type: Microsoft.SharePoint.SPWeb
The Web site of the current request context.
Use SPContext.Current.Web to get the Web site of the current request context.
Please sign in to use this experience.
Sign in