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

SPMobileList.TemplateType, propriété (Microsoft.SharePoint.MobileControls)

Windows SharePoint Services 3
Gets or sets the underlying template type for the list.

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

public string TemplateType { get; set; }

Valeur de la propriété

A String that specifies the template type of the list.

Although the property is type String, you must use a string representation of the name or the number of the template type as it appears in the SPListTemplateType enumeration. The possible values for the built-in list template types are shown in the table below.

For custom list templates, you can use the string representation of the type number, such as "10001" or "98765432", or the name, such as "MyCustomListTemplate." The type number is the value of the Type attribute of the <ListTemplate, élément (Modèle de liste)> element in the Elements.xml file that you create for the custom list template. See Procédure : créer une définition de liste personnalisée. The name is the value of the Name attribute of that same <ListTemplate, élément (Modèle de liste)> element.

When creating custom list templates, assign Type values above 10000 to ensure that your numbers do not conflict with new built-in template types that Microsoft may include with future versions of Windows SharePoint Services.