FieldLabel.DefaultDisplayTemplateName 属性

获取显示模式的默认呈现模板的名称。

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

语法

声明
Protected Overridable ReadOnly Property DefaultDisplayTemplateName As String
    Get
用法
Dim value As String

value = Me.DefaultDisplayTemplateName
protected virtual string DefaultDisplayTemplateName { get; }

属性值

类型:System.String
名称呈现模板String

备注

默认实现返回"FieldLabelForDisplay",即文件夹%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\15\template\controltemplates 中的 aspx 文件 <RenderingTemplate> 元素的 ID 属性的值。它标识的RenderingTemplate对象,如果已设置之前调用**DisplayTemplateName()**属性或出于任何原因不能使用该名称的模板可用作后备。

另请参阅

引用

FieldLabel 类

FieldLabel 成员

Microsoft.SharePoint.WebControls 命名空间