共用方式為


SummaryLinkCollection.GroupCount Property

Gets the number of groups that are currently in use by the SummaryLink items in the collection.

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

Syntax

'Declaration
Public ReadOnly Property GroupCount As Integer
    Get
'Usage
Dim instance As SummaryLinkCollection
Dim value As Integer

value = instance.GroupCount
public int GroupCount { get; }

Property Value

Type: System.Int32

Remarks

A group is indicated in a SummaryLinkCollection by the presence of a SummaryLink with SummaryLink.IsGroupHeader set to true. This method counts the number of SummaryLinks with IsGroupHeader set to true.

See Also

Reference

SummaryLinkCollection Class

SummaryLinkCollection Members

Microsoft.SharePoint.Publishing Namespace

IsGroupHeader