DocumentSetTemplate.GetDocumentSetTemplate Method
Gets the DocumentSetTemplate from a SPContentType object.
Namespace: Microsoft.Office.DocumentManagement.DocumentSets
Assembly: Microsoft.Office.DocumentManagement (in Microsoft.Office.DocumentManagement.dll)
Syntax
'Declaration
Public Shared Function GetDocumentSetTemplate ( _
ct As SPContentType _
) As DocumentSetTemplate
'Usage
Dim ct As SPContentType
Dim returnValue As DocumentSetTemplate
returnValue = DocumentSetTemplate.GetDocumentSetTemplate(ct)
public static DocumentSetTemplate GetDocumentSetTemplate(
SPContentType ct
)
Parameters
- ct
Type: Microsoft.SharePoint.SPContentType
Return Value
Type: Microsoft.Office.DocumentManagement.DocumentSets.DocumentSetTemplate
The DocumentSetTemplate object that holds the settings for a document set content type.
Remarks
The settings stored in the template are the content types allowed in the document set, the fields that are marked as shared, the default documents, the fields to display on the welcome page and the view to use in the welcome page.