ContentType.DocumentTemplate 属性
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.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Property DocumentTemplate As String
Get
Set
用法
Dim instance As ContentType
Dim value As String
value = instance.DocumentTemplate
instance.DocumentTemplate = value
public string DocumentTemplate { get; set; }
属性值
类型: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.
异常
异常 | 条件 |
---|---|
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. |
备注
It must not be 空引用(无 在 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.