Share via


SPListTemplate.Unique property

Gets a Boolean value that indicates whether only one instance of the list type can be created through the template, and that the template cannot be used to create a list through the object model or user interface.

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

Syntax

'Declaration
Public ReadOnly Property Unique As Boolean
    Get
'Usage
Dim instance As SPListTemplate
Dim value As Boolean

value = instance.Unique
public bool Unique { get; }

Property value

Type: System.Boolean
true if only one instance of the list type can be created through the template; otherwise, false.

Remarks

The Unique property represents the property as declared in the ListTemplate element of the site definition, and not the actual state of this property as persisted in the .stp file of a site saved as a custom template.

The list template for the Web Part gallery, site template gallery, or list template gallery is an example of a unique definition or template.

A definition or template whose Unique property is set to true is hidden so that it does not appear as an option on the Create page or on the Site Libraries and Lists page.

See also

Reference

SPListTemplate class

SPListTemplate members

Microsoft.SharePoint namespace