다음을 통해 공유


SummaryLinkWebPart Class

Derived ASP.NET Web Part that is used to interact with SummaryLinks.

This API is not CLS-compliant. 

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.Panel
        System.Web.UI.WebControls.WebParts.Part
          System.Web.UI.WebControls.WebParts.WebPart
            Microsoft.SharePoint.WebPartPages.WebPart
              Microsoft.SharePoint.WebPartPages.BaseXsltDataWebPart
                Microsoft.SharePoint.WebPartPages.DataFormWebPart
                  Microsoft.SharePoint.Publishing.WebControls.CmsDataFormWebPart
                    Microsoft.SharePoint.Publishing.WebControls.SummaryLinkWebPart

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

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
<AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SummaryLinkWebPart _
    Inherits CmsDataFormWebPart _
    Implements INamingContainer
'Usage
Dim instance As SummaryLinkWebPart
[CLSCompliantAttribute(false)]
[AspNetHostingPermissionAttribute(SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SummaryLinkWebPart : CmsDataFormWebPart, 
    INamingContainer

Remarks

This Web Part is used to interact with SummaryLinks through the SummaryLinkFieldValue object. It can be used as a dynamic Web Part that exists inside a Web Part zone, in which case the data is stored using Web Part technology, or it can be wrapped by a control that handles storage of the SummaryLinkFieldValue in cases where the Web Part is static and has no Web Part storage. The SummaryLinkFieldControl is a control that wraps this SummaryLinkWebPart and provides storage inside a page field.

The SummaryLinkWebPart is a specialized DataFormWebPart that renders a display of the SummaryLinks using XSL style sheets that are associated with the Web Part. It also provides a Design mode experience which includes on-object user interface (UI), such as a toolbar, and EditControlBlock (ECB) menus that allow easy addition, deletion, and editing of individual summary links. The SummaryLinkWebPart supports a client-side drag-and-drop behavior, which allows links and groups to be rearranged.

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

SummaryLinkWebPart Members

Microsoft.SharePoint.Publishing.WebControls Namespace

DataFormWebPart

SummaryLinkFieldValue

SummaryLinkFieldControl

SummaryLink