Propriedade SPMobileComponent.Web

Obtém o atual site do SharePoint.

Espaço para nome Microsoft.SharePoint.MobileControls
Conjunto de Módulos (Assembly) Microsoft.SharePoint (em microsoft.sharepoint.dll)

A sintaxe

  Public Overridable ReadOnly Property Web As SPWeb
Dim instance As SPMobileComponent
Dim value As SPWeb

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

A propriedade Value

Um SPWeb que representa o atual site do SharePoint.

Comentários

A implementação usar como padrão retorna o valor do Web P:Microsoft.SharePoint.SPContext.Web propriedade do SharePointContext P:Microsoft.SharePoint.MobileControls.SPMobileComponent.SharePointContext propriedade.Web em vez de usarMicrosoft.SharePoint.MobileControls.SPMobileComponent.SharePointContext.WebPara simplificar sua codificar.Não substituir Web ou criar uma chance de que seu valor é inconsistente com o valor deMicrosoft.SharePoint.MobileControls.SPMobileComponent.SharePointContext.Web.

Consulte também

Referência

SPMobileComponent De classe
SPMobileComponent Membros
Microsoft.SharePoint.MobileControls De espaço para nome