Share via


SummaryLinkFieldControl Class

Web control that is associated with a SummaryLinkField.

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    Microsoft.SharePoint.WebControls.SPControl
      Microsoft.SharePoint.WebControls.TemplateBasedControl
        Microsoft.SharePoint.WebControls.FormComponent
          Microsoft.SharePoint.WebControls.FieldMetadata
            Microsoft.SharePoint.WebControls.BaseFieldControl
              Microsoft.SharePoint.Publishing.WebControls.SummaryLinkFieldControl

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public NotInheritable Class SummaryLinkFieldControl _
    Inherits BaseFieldControl
'Usage
Dim instance As SummaryLinkFieldControl
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public sealed class SummaryLinkFieldControl : BaseFieldControl

Remarks

A SummaryLinkFieldControl can be placed on an ASP.NET page and associated with a SummaryLinkField object by using markup such as:

<PublishingWebControls:SummaryLinkFieldControl id="LeftColumnSummaryLinks" FieldName="SummaryLinks" />

This markup specifies the control's position on the page and associates the control with the page field that will provide the control with data. The SummaryLinkFieldControl derives from BaseFieldControl, which is part of the Extensible field framework of Windows SharePoint Services. The SummaryLinkFieldControl wraps the SummaryLinkWebPart and defers all rendering to that Web Part. The data for a SummaryLinkFieldControl is stored in a Page field and is passed to the SummaryLinkWebPart when the SummaryLinkFieldControl is instantiated.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SummaryLinkFieldControl Members

Microsoft.SharePoint.Publishing.WebControls Namespace

BaseFieldControl