共用方式為


SPLinkCollection class

表示Microsoft.SharePoint.SPLink物件的集合。

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPLinkCollection

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

Syntax

'宣告
Public NotInheritable Class SPLinkCollection _
    Inherits SPBaseCollection
'用途
Dim instance As SPLinkCollection
public sealed class SPLinkCollection : SPBaseCollection

備註

您可以使用BackwardLinks或ForwardLinksSPFileSPListItem類別的屬性,分別傳回的檔案或清單項目,請向前或回溯連結集合。回溯連結前往從其他網頁檔案或清單項目,而正向連結從檔案跳到其他頁。使用索引子來從集合傳回單一項目。例如,如果集合指派給一個名為myLinks變數,使用myLinks[index] 在 Microsoft Visual C# 或myLinks(index) 在 Microsoft Visual Basic,其中index是集合中項目的索引編號。

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.

請參閱

參照

SPLinkCollection members

Microsoft.SharePoint namespace