次の方法で共有


SPContentType.NewFormTemplateName property

Gets or sets the name of a custom New form template to use for items assigned this content type.

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

Syntax

'Declaration
Public Property NewFormTemplateName As String
    Get
    Set
'Usage
Dim instance As SPContentType
Dim value As String

value = instance.NewFormTemplateName

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

Property value

Type: System.String
The name of a custom New form template.

Remarks

Form templates are .asmx controls that render the central section of a SharePoint Foundation Web page. That is, the form template renders everything except the SharePoint Foundation frame elements (what is usually termed the chrome) on the page. SharePoint Foundation renders the framing elements for the page.

The form template name you specify must be the name of a rendering template that is found within an .ascx file located on the front-end Web server at the following location:

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

For more information, see FormTemplates Schema Overview.

See also

Reference

SPContentType class

SPContentType members

Microsoft.SharePoint namespace

Other resources

FormTemplates Schema Overview

Custom Information in Content Types

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy