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 service context for the application that is currently running.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Shared ReadOnly Property Current As SPServiceContext
Get
'Usage
Dim value As SPServiceContext
value = SPServiceContext.Current
public static SPServiceContext Current { get; }
Property Value
Type: Microsoft.SharePoint.SPServiceContext
A SPServiceContext that is the current service context.
Remarks
This property is equivalent to calling the GetContext(HttpContext) method and specifying HttpContext.Current for the httpContext parameter.