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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Property DocumentTemplateUrl As String
Get
Set
'Usage
Dim instance As SPDocumentLibrary
Dim value As String
value = instance.DocumentTemplateUrl
instance.DocumentTemplateUrl = value
public string DocumentTemplateUrl { get; set; }
Property Value
Type: System.String
A string that contains the URL, for example, Shared Documents/Forms/template.doc.
Remarks
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.