Export (0) Print
Expand All

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.

Community Additions

ADD
Show:
© 2014 Microsoft