Свойство 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 пустая ссылка (Nothing в 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.