次の方法で共有


SPContentType.DocumentTemplate property

Gets or sets the document template for the content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property DocumentTemplate As String
    Get
    Set
'Usage
Dim instance As SPContentType
Dim value As String

value = instance.DocumentTemplate

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

Property value

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

Remarks

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.

See also

Reference

SPContentType class

SPContentType members

Microsoft.SharePoint namespace

Other resources

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy