This topic has not yet been rated Rate this topic

SPContentType.DocumentTemplate Property

Gets or sets the document template for the content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableConstraintAttribute(FixedId = "urlconstraint", Type = ClientCallableConstraintType.Custom, 
	Value = "It MUST be either absolute URL, server-relative URL, or relative to the content type resource folder for the content type")]
[ClientCallableAttribute]
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
public string DocumentTemplate { get; set; }

Property Value

Type: System.String
The path and filename of the template.

The document template is the file which SharePoint Foundation opens as a template when a user requests a new item of this content type.

This path can be absolute, relative to the server base URL, or relative to the content type's resource folder.

Did you find this helpful?
(2000 characters remaining)
Community Content Add
Annotations FAQ