Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

SPContext.Web property

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)
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableAttribute(Name = "Web")]
public SPWeb Web { get; }

Property value

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.