다음을 통해 공유


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

'Declaration
Public Overrides ReadOnly Property DefaultTemplateName As String
    Get
'Usage
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 or GbwMobileDefaultTemplates.ascx, which is located in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\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