ListItemProperty 类
返回列表项的属性。
继承层次结构
System.Object
System.Web.UI.Control
Microsoft.SharePoint.WebControls.SPControl
Microsoft.SharePoint.WebControls.ListItemProperty
命名空间: Microsoft.SharePoint.WebControls
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Class ListItemProperty _
Inherits SPControl
用法
Dim instance As ListItemProperty
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class ListItemProperty : SPControl
示例
下面的代码示例从列表中使用的项显示窗体ListItemProperty控制返回作为页标题的一部分显示当前项目的标题。
<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 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。