다음을 통해 공유


SPWebApplication.Context property

Gets the context web application, if present.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared ReadOnly Property Context As SPWebApplication
    Get
'Usage
Dim value As SPWebApplication

value = SPWebApplication.Context
public static SPWebApplication Context { get; }

Property value

Type: Microsoft.SharePoint.Administration.SPWebApplication

Remarks

This ONLY works if there is an HttpContext.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace