Compartilhar via


SP.ContentType.documentTemplate Property

Applies to: SharePoint Foundation 2010

In this article
Property Value
Applies To
Remarks

Gets or sets a value that specifies the file path to the document template used for a new list item that has been assigned the content type.

var value = SP.ContentType.get_documentTemplate(); 
SP.ContentType.set_documentTemplate(value);

Property Value

Type: String

Applies To

SP.ContentType Class

Exceptions

  • [Microsoft.SharePoint.SPException]
    It is not a valid file name or is it not a server-relative URL or it is not an absolute URL. Error code: -2146232832. List is not found or has been deleted. Error code: -2130575338.

Remarks

It must not be null. It must be either an absolute URL, a server-relative URL, or a URL relative to the content type resource folder for the content type.

See Also

Reference

SP.ContentType Methods

SP.ContentType Properties

SP Namespace