SPMobileCompositeField.DefaultTemplateName Property

Gets the ID of the RenderingTemplate.

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


Public Overrides ReadOnly Property DefaultTemplateName As String

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.


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


SPMobileCompositeField Class

SPMobileCompositeField Members

Microsoft.SharePoint.MobileControls Namespace