Partilhar via


SPMobileWebTemplateSelector.WebTypeTemplate Property

Gets the ID (of a RenderingTemplate template) that has, in its second segment, the name of the site definition of the current Web site.

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

Syntax

'Declaration
Public Overridable ReadOnly Property WebTypeTemplate As String
    Get
'Usage
Dim instance As SPMobileWebTemplateSelector
Dim value As String

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

Property Value

Type: System.String
A String that represents a RenderingTemplate ID whose second segment consists of the value of the Name attribute of the Collaborative Application Markup Language (CAML) Template Element (Site) element (of the SharePoint WEBTEMP.XML file) for the current type of Web site. For example, the Name value for the blog site definition is "BLOG".

Remarks

"BLOG", "STS", “SGS” are the only possible values in SharePoint Foundation of the second segment of a RenderingTemplate ID, because none of the other site types that ship with SharePoint Foundation support access from mobile devices, and custom site definitions are identified by WebIdTemplate.

See Also

Reference

SPMobileWebTemplateSelector Class

SPMobileWebTemplateSelector Members

Microsoft.SharePoint.MobileControls Namespace

Other Resources

Mobile Page Rendering System