Partilhar via


SPMobileListTemplateSelector.TemplateName Property

Gets the ID of the RenderingTemplate template that is used to render the list, if it can be found in any .ascx file in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES.

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

Syntax

'Declaration
Public Overrides ReadOnly Property TemplateName As String
    Get
'Usage
Dim instance As SPMobileListTemplateSelector
Dim value As String

value = instance.TemplateName
public override string TemplateName { get; }

Property Value

Type: System.String
A String that represents the ID of a RenderingTemplate template for which SPMobileListTemplateSelector looks in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES.

Remarks

The get accessor for TemplateName looks, in .ascx files in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES, for templates that are identified in the following properties. It returns the first template that it finds. The properties are listed in order of priority. For example, the get accessor does not look for a template with the ID in ListTypeIdTemplate() unless there is no .ascx file that has a template with the ID in ListTypeTemplate(). The last one listed is guaranteed to exist unless the MobileControlTemplates.ascx file has been modified, which is not supported.

  • ListTypeTemplate()

  • ListTypeIdTemplate()

  • BaseTypeTemplate()

  • BaseTypeIdTemplate()

  • DefaultTemplateName

See Also

Reference

SPMobileListTemplateSelector Class

SPMobileListTemplateSelector Members

Microsoft.SharePoint.MobileControls Namespace

Other Resources

Mobile Page Rendering System