Compartilhar via


Propriedade SPMobileComponent.DefaultTemplateName

Gets the value of the ID attribute of the <RenderingTemplate> element that defines the rendering of the component.

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

A sintaxe

  Public Overridable ReadOnly Property DefaultTemplateName As String
Dim instance As SPMobileComponent
Dim value As String

value = instance.DefaultTemplateName
  public virtual string DefaultTemplateName { get; }

A propriedade Value

Um String que representa a identificação do modelo de usar como padrão para o componente.

Comentários

A implementação usar como padrão desta propriedade é sempre NULL null.Hence, you must override DefaultTemplateName if you want your SPMobileComponent-derived component to have a default RenderingTemplate that it uses if the TemplateName property is not set.

When overridden in a derived class, the DefaultTemplateName property holds the value of the ID attribute of a <RenderingTemplate> element in either the file MobileDefaultTemplates.ascx located in C:\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES or in a custom *.ascx file in that same folder.

Consulte também

Referência

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