SPContentType.NewFormUrl 属性

获取或设置要用于项目的自定义New窗体页面的 URL 分配此内容类型。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Property NewFormUrl As String
    Get
    Set
用法
Dim instance As SPContentType
Dim value As String

value = instance.NewFormUrl

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

属性值

类型:System.String
自定义New窗体页的 URL。

备注

此属性,可以指定客户端重定向到自定义New窗体页的项目分配此内容类型。

表单页是 .aspx 页,它们取代了整个默认 SharePoint Foundation 页,包括帧元素或部件版式,例如顶部和侧导航栏。对于表单页,必须创建任何导航链接或通常可在 SharePoint Foundation 部件版式中找到的其他所需元素。

您指定的 URL 必须相对于内容类型的根位置。

如果不指定自定义窗体页, SharePoint Foundation呈现该窗体自动为您。

For more information, see FormUrls Schema Overview.

另请参阅

引用

SPContentType 类

SPContentType 成员

Microsoft.SharePoint 命名空间

MobileNewFormUrl

其他资源

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy