SPDocumentLibrary.DocumentTemplateUrl property

Gets or sets the URL of the document template for the library relative to the Web site that contains the document library.

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

public string DocumentTemplateUrl { get; set; }

Property value

Type: System.String
A string that contains the URL, for example, Shared Documents/Forms/template.doc.

The document template for a library must exist in the Forms folder of the document library.

This property can be dynamically set at run time, allowing usage of multiple document templates for the same document library.