Partilhar via


SPMobileWebTemplateSelector.TemplateName Property

Gets the ID of the RenderingTemplate template that is used to render the section of the home page or delete page, 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 SPMobileWebTemplateSelector
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 SPMobileWebTemplateSelector looks in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES.

Remarks

The runtime looks first for the template that is identified in WebTypeTemplate. If no template with that ID exists in any .ascx file in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\CONTROLTEMPLATES, it looks for the template that is identified by WebIdTemplate. If neither exists, the template identified in DefaultTemplateName is used. The latter template is guaranteed to exist unless the MobileControlTemplates.ascx file has been modified, which is not supported.

See Also

Reference

SPMobileWebTemplateSelector Class

SPMobileWebTemplateSelector Members

Microsoft.SharePoint.MobileControls Namespace

Other Resources

Mobile Page Rendering System