Share via


SPRelatedFieldCollection class

Represents a collection of SPRelatedField objects with information about the relationship between a field in a list and a lookup field in another list.

Inheritance hierarchy

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

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

Syntax

'Declaration
Public Class SPRelatedFieldCollection _
    Inherits SPBaseCollection
'Usage
Dim instance As SPRelatedFieldCollection
public class SPRelatedFieldCollection : SPBaseCollection

Remarks

An SPRelatedFieldCollection object is returned by a call to the GetRelatedFields() method of an SPList object. The collection contains objects of type SPRelatedField. Each object in the collection contains information about the relationship between a field in the list and a lookup field in another list. For more information, see the GetRelatedFields() method and the SPRelatedField class.

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

SPRelatedFieldCollection members

Microsoft.SharePoint namespace

SPList.GetRelatedFields()