ListProperty Class
The ListProperty class returns a property of a list.
System.Object
System.Web.UI.Control
Microsoft.SharePoint.WebControls.SPControl
Microsoft.SharePoint.WebControls.ListProperty
Public Constructors
The following table shows the public constructors of the ListProperty class and a brief description of each.
Name | Description |
---|---|
ListProperty | Initializes a new instance of the ListProperty class. |
Protected Methods
The following table shows the protected methods of the ListProperty class and a brief description of each.
Name | Description |
---|---|
Render | Sends the content of the control to the specified HtmlTextWriter object, which writes the content that is rendered on the client. |
Public Properties
The following table shows the public properties of the ListProperty class, the data type of each property, and a brief description of each.
Name | Data Type | Description |
---|---|---|
List | String | Gets or sets the GUID of the list for the server control. |
Property | String | Gets or sets the name of the property to render for the server control. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Example
The following code example from the item display form (DispForm.aspx) for a list uses the ListProperty control to return the link title of the current list to display as part of the page heading.
<table cellpadding=0 cellspacing=0>
<tr>
<td nowrap class="ms-titlearea"><SharePoint:ProjectProperty Property="Title" /></td>
</tr>
<tr>
<td ID=onetidPageTitle class="ms-pagetitle">
<SharePoint:ListProperty Property="LinkTitle" />: <SharePoint:ListItemProperty Property="Title" MaxLength=40 />
</td>
</tr>
</table>
Requirements
Namespace: Microsoft.SharePoint.WebControls
Platforms: Microsoft Windows Server 2003
Assembly: Windows SharePoint Services (in Microsoft.SharePoint.dll)
Security: Code Access Security