Cette documentation est archivée et n’est pas conservée.

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

Windows SharePoint Services 3
Gets the name of the default template for the list of events.

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

public override string DefaultTemplateName { get; }

Valeur de la propriété

A String that represents the name of the default template for the event list.

In Windows SharePoint Services 3.0 this property always returns "MobileEventsListItemIterator". This is 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.

You must not modify MobileDefaultTemplates.ascx. To customize the rendering of this control, create another <RenderingTemplate> element in a new ascx file in the ...\CONTROLTEMPLATES folder. Give your new <RenderingTemplate> element an ID value that is descriptive, but likely to be unique. For example, you could add your company's name to the end of the ID, such as "MobileEventsListItemIteratorAdventureWorks". Then derive a new class from SPMobileListItemIterator (the same parent as SPMobileEventsListItemIterator) and override its DefaultTemplateName property so that it returns your custom ID.

Afficher: