Compartilhar via


SPMobileComponent.Web Property

Gets the current SharePoint site.

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

Syntax

'Declaration
Public Overridable ReadOnly Property Web As SPWeb
    Get
'Usage
Dim instance As SPMobileComponent
Dim value As SPWeb

value = instance.Web
public virtual SPWeb Web { get; }

Property Value

Type: Microsoft.SharePoint.SPWeb
An SPWeb that represents the current SharePoint site.

Remarks

The default implementation returns the value of the Web property of the SharePointContext property. Use Web instead of Microsoft.SharePoint.MobileControls.SPMobileComponent.SharePointContext.Web to simplify your code. Do not override Web or you create a chance that its value will be inconsistent with the value of Microsoft.SharePoint.MobileControls.SPMobileComponent.SharePointContext.Web.

See Also

Reference

SPMobileComponent Class

SPMobileComponent Members

Microsoft.SharePoint.MobileControls Namespace