共用方式為


SPContentType.DisplayFormTemplateName property

取得或設定要用於指定這個內容類型的項目自訂Display表單範本的名稱。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property DisplayFormTemplateName As String
    Get
    Set
'用途
Dim instance As SPContentType
Dim value As String

value = instance.DisplayFormTemplateName

instance.DisplayFormTemplateName = value
public string DisplayFormTemplateName { get; set; }

Property value

Type: System.String
自訂Display表單範本的名稱。

備註

表單範本是呈現SharePoint Foundation網頁中央部分的.asmx 控制項。也就是表單範本會呈現SharePoint Foundation框架項目 (項目通常稱為chrome) 以外的所有內容頁面上。SharePoint Foundation呈現網頁的框架項目。

您指定的表單範本名稱必須是在.ascx 檔位於前端 Web 伺服器的下列位置找到呈現範本的名稱:

Program files\common files\microsoft shared\web server extensions\12\template\controltemplates

如需詳細資訊,請參閱FormTemplates Schema Overview

請參閱

參照

SPContentType class

SPContentType members

Microsoft.SharePoint namespace

其他資源

FormTemplates Schema Overview

Custom Information in Content Types

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy