SPContext.Web Property (Microsoft.SharePoint)
Gets the Web site that is associated with the Windows SharePoint Services context.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property Web As SPWeb
Visual Basic (Usage)
Dim instance As SPContext
Dim value As SPWeb

value = instance.Web
C#
public SPWeb Web { get; }

Property Value

An SPWeb object that represents the Web site.
See Also

Tags :


Page view tracker