SPLinkCollection 类

表示Microsoft.SharePoint.SPLink对象的集合。

继承层次结构

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

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public NotInheritable Class SPLinkCollection _
    Inherits SPBaseCollection
用法
Dim instance As SPLinkCollection
public sealed class SPLinkCollection : SPBaseCollection

备注

使用SPFileSPListItem类的BackwardLinks或ForwardLinks属性分别返回的文件或列表项,向后或向前链接的集合。向后链接前往其他页面从文件或列表项,而正向链接转到其他页面从文件。使用索引器从集合中返回一个项。例如,如果集合分配给名为myLinks的变量中,则可使用myLinks[index] 在 Microsoft Visual C# 或myLinks(index) 在 Microsoft Visual Basic,其中index是集合中的项的索引号。

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

SPLinkCollection 成员

Microsoft.SharePoint 命名空间