SPMobileFieldLabel.DefaultTemplateName Property

Gets the ID of the RenderingTemplate template that defines how the field label is rendered.

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

Syntax

Public Overrides ReadOnly Property DefaultTemplateName As String
    Get

Dim instance As SPMobileFieldLabel
Dim value As String

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

Property Value

Type: System.String
A String that represents the value of the ID attribute of a RenderingTemplate element in the file MobileDefaultTemplates.ascx, which is located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES.

Remarks

If the current page is not the Display form and the field is required, the DefaultTemplateName property returns "MobileRequiredFieldLabel"; otherwise it returns "MobileDefaultFieldLabel".

See Also

Reference

SPMobileFieldLabel Class

SPMobileFieldLabel Members

Microsoft.SharePoint.MobileControls Namespace