SPMobileCompositeField.DefaultTemplateName Property

Gets the ID of the RenderingTemplate.

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

Syntax

Public Overrides ReadOnly Property DefaultTemplateName As String
    Get

Dim instance As SPMobileCompositeField
Dim value As String

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

Property Value

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

Remarks

If the current page is the Display form and the field is a lookup field that allows multiple values in the field for each list item, the DefaultTemplateName property returns "MobileMultiValueCompositeField"; otherwise, it returns "MobileCompositeField".

See Also

Reference

SPMobileCompositeField Class

SPMobileCompositeField Members

Microsoft.SharePoint.MobileControls Namespace