SPMobileComponent.DefaultTemplateName, propriété (Microsoft.SharePoint.MobileControls)

Windows SharePoint Services 3
Gets the value of the ID attribute of the <RenderingTemplate> element that defines the rendering of the component.

Espace de noms : Microsoft.SharePoint.MobileControls
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)

public virtual string DefaultTemplateName { get; }

Valeur de la propriété

A String that represents the ID of the default template for the component.

The default implementation of this property is always null. Hence, you must override DefaultTemplateName if you want your SPMobileComponent-derived component to have a default RenderingTemplate that it uses if the TemplateName property is not set.

When overridden in a derived class, the DefaultTemplateName property holds the value of the ID attribute of a <RenderingTemplate> element in either the file MobileDefaultTemplates.ascx located in C:\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES or in a custom *.ascx file in that same folder.