SPContentType.DocumentTemplate 属性

获取或设置内容类型的文档模板。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Property DocumentTemplate As String
    Get
    Set
用法
Dim instance As SPContentType
Dim value As String

value = instance.DocumentTemplate

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

属性值

类型:System.String
路径和文件名的模板。

备注

文档模板是用户请求此内容类型的新项目时,哪些SharePoint Foundation打开作为模板的文件。

此路径可以是绝对,相对于服务器的基 URL,或相对于内容类型的资源文件夹。

另请参阅

引用

SPContentType 类

SPContentType 成员

Microsoft.SharePoint 命名空间

其他资源

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy