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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
Public ReadOnly Property Unique As Boolean
Get
'Usage
Dim instance As SPListTemplate
Dim value As Boolean
value = instance.Unique
[ClientCallableAttribute]
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.