Share via


ProjectProperty Class

The ProjectProperty class returns a global property of the current Web site.

System.Object

   System.Web.UI.Control

      Microsoft.SharePoint.WebControls.SPControl

         Microsoft.SharePoint.WebControls.ProjectProperty

Public Constructors

The following table shows the public constructors of the ProjectProperty class and a brief description of each.

Name Description
ProjectProperty Initializes a new instance of the ProjectProperty class.

Protected Methods

The following table shows the protected methods of the ProjectProperty 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 ProjectProperty class, the data type of each property, and a brief description of each.

Name Data Type Description
Property String Gets or sets the current project property.

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 title of the current project 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