Propriedade SPMobileComponent.Template

Obtém ou define o modelo que processamento Controles do objeto SPMobileComponent T:Microsoft.SharePoint.MobileControls.SPMobileComponent.

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

A sintaxe

  Public Overridable Property Template As ITemplate
Dim instance As SPMobileComponent
Dim value As ITemplate

value = instance.Template

instance.Template = value
  public virtual ITemplate Template { get; set; }

A propriedade Value

Um ITemplate que controla o processamento do objeto SPMobileComponent T:Microsoft.SharePoint.MobileControls.SPMobileComponent.O usar como padrão é o objeto ITemplate T:System.Web.UI.ITemplate que está nomeado por TemplateName.

Comentários

In the default implementation, if Template is not explicitly set, but TemplateName is not null, Template returns the RenderingTemplate object named by TemplateName.

Setting TemplateName (with its default implementation) has the side effect of setting Template to return the RenderingTemplate object that is named by TemplateName.

No entanto, configuração Template diretamente NãoDefina como o nome do modelo que foi atribuído a TemplateNameRenderingTemplateTemplate.Assim, você pode reduzir o perigo de Valores inconsistentes usando TemplateName quando você precisa definir o objeto RenderingTemplate T:Microsoft.SharePoint.WebControls.RenderingTemplate.

If the values of Template and TemplateName are inconsistent, Template determines the RenderingTemplate object that is used to render the component.

Consulte também

Referência

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