ContentType.DocumentTemplate - Propriété
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.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Property DocumentTemplate As String
Get
Set
'Utilisation
Dim instance As ContentType
Dim value As String
value = instance.DocumentTemplate
instance.DocumentTemplate = value
public string DocumentTemplate { get; set; }
Valeur de propriété
Type : 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.
Exceptions
Exception | Condition |
---|---|
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. |
Remarques
It must not be une référence Null (Rien dans 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.