SPMobileWebTemplateSelector.WebIdTemplate Property

Gets the ID (of a RenderingTemplate template) that has, in its second segment, the ID number 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 WebIdTemplate As String
    Get
'Usage
Dim instance As SPMobileWebTemplateSelector
Dim value As String

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

Property Value

Type: System.String
A String that represents the ID of a RenderingTemplate template that uses, in its second segment, the value of the ID 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 ID value for the blog site definition is "9".

Remarks

The possible values for the second segment of the RenderingTemplate ID that is constructed by an SPMobileWebTemplateSelector object are "1" (for the STS type), "9" (for the BLOG type), “15” (for the SGS type) or the ID of any custom site definition (which should always be values above 10000). Access from mobile devices is not supported in SharePoint Foundation for MPS, TENANTADMIN, CENTRALADMIN, or legacy WIKI sites.

The template identified in WebIdTemplate is used only if the one identified in WebTypeTemplate does not exist.

See Also

Reference

SPMobileWebTemplateSelector Class

SPMobileWebTemplateSelector Members

Microsoft.SharePoint.MobileControls Namespace

Other Resources

Mobile Page Rendering System