Share via


SPMobileWebContents.Suffix Property

Gets the part of the <RenderingTemplate> ID that follows the site type name (or ID number).

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

Syntax

'Declaration
Public Overrides ReadOnly Property Suffix As String
    Get
'Usage
Dim instance As SPMobileWebContents
Dim value As String

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

Property Value

Type: System.String
A String that represents the portion of the <RenderingTemplate> ID that follows the name (or ID number) of the type of site and the ElementSeparator character (an underscore, by default).

Remarks

Suffix returns PageType_Contents, where PageType is the type of page, such as HomePage, DeletePage, or NewForm. The "Contents" indicates that <RenderingTemplate> applies to the main contents part of the page.

However, in SharePoint Foundation, SPMobileWebContents is used only when the page type is HomePage, so Suffix always returns HomePage_Contents. (There is an exceptional case when Suffix returns DeletePage_Contents.)

You should not use SPMobileWebContents in your own code.

See Also

Reference

SPMobileWebContents Class

SPMobileWebContents Members

Microsoft.SharePoint.MobileControls Namespace

Other Resources

Walkthrough: Customizing a Mobile Home Page