SPDocumentLibrary.ServerRelativeDocumentTemplateUrl Property

Gets the server-relative URL of the document template for the library.

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

Syntax

'Declaration
Public ReadOnly Property ServerRelativeDocumentTemplateUrl As String
    Get
'Usage
Dim instance As SPDocumentLibrary
Dim value As String

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

Property Value

Type: System.String
A string that contains the URL. If the absolute URL to the document template is http://MyServer//MyWebSite/Shared Documents/Forms/template.doc, this property returns /MyWebSite/Shared Documents/Forms/template.doc.

See Also

Reference

SPDocumentLibrary Class

SPDocumentLibrary Members

Microsoft.SharePoint Namespace