SPMobileComponent.DefaultTemplateName, propriété (Microsoft.SharePoint.MobileControls)
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)
Syntaxe
'Déclaration
Public Overridable ReadOnly Property DefaultTemplateName As String
'Utilisation
Dim instance As SPMobileComponent
Dim value As String
value = instance.DefaultTemplateName
public virtual string DefaultTemplateName { get; }
Valeur de la propriété
A String that represents the ID of the default template for the component.
Notes
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.
Voir aussi
Référence
SPMobileComponent, classe
Membres SPMobileComponent
Microsoft.SharePoint.MobileControls, espace de noms