Partilhar via


SPListTemplate.DocumentTemplate Property

Gets the ID of the document template associated with the list definition or list template.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property DocumentTemplate As String
    Get
'Usage
Dim instance As SPListTemplate
Dim value As String

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

Property Value

Type: System.String
A string that contains the ID, which by default equals 101 for document libraries.

See Also

Reference

SPListTemplate Class

SPListTemplate Members

Microsoft.SharePoint Namespace