Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPWebApplication.Context property

SharePoint 2013

Gets the context web application, if present.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public static SPWebApplication Context { get; }

This ONLY works if there is an HttpContext.

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

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.