ListProperty 类

返回列表的属性。

继承层次结构

System.Object
  System.Web.UI.Control
    Microsoft.SharePoint.WebControls.SPControl
      Microsoft.SharePoint.WebControls.ListProperty

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

语法

声明
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class ListProperty _
    Inherits SPControl
用法
Dim instance As ListProperty
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class ListProperty : SPControl

示例

下面的代码示例从项显示列表使用ListProperty控制返回链接标题显示为页标题的一部分的当前列表表单 (DispForm.aspx)。

<table cellpadding=0 cellspacing=0>
   <tr>
      <td nowrap class="ms-titlearea"><SharePoint:ProjectProperty Property="Title" runat="server"/></td>
   </tr>
   <tr>
      <td ID=onetidPageTitle class="ms-pagetitle">
         <SharePoint:ListProperty Property="LinkTitle" runat="server"/>: <SharePoint:ListItemProperty Property="Title" MaxLength=40 runat="server"/>
      </td>
   </tr>
</table>

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

ListProperty 成员

Microsoft.SharePoint.WebControls 命名空间