Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DocumentTemplate Property

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")]
[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.

© 2015 Microsoft