다음을 통해 공유


ContentType.DocumentTemplate Property

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.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property DocumentTemplate As String
    Get
    Set
'Usage
Dim instance As ContentType
Dim value As String

value = instance.DocumentTemplate

instance.DocumentTemplate = value
[RemoteAttribute]
public string DocumentTemplate { get; set; }

Property Value

Type: System.String
Returns a instance representing the file path to the document template used for a new list item that has been assigned the content type.

Exceptions

Exception Condition
[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 a null reference (Nothing in Visual Basic). 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

ContentType Class

ContentType Members

Microsoft.SharePoint.Client Namespace