Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Context property
Collapse the table of content
Expand the table of content

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.

Show:
© 2015 Microsoft