共用方式為


SPList.GetRelatedFields method (SPRelationshipDeleteBehavior)

取得與另一個清單中,指向 [此清單中,取決於指定的刪除限制式的欄位的查閱欄位的相關資訊的物件的集合。

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

Syntax

'宣告
Public Function GetRelatedFields ( _
    deleteBehavior As SPRelationshipDeleteBehavior _
) As SPRelatedFieldCollection
'用途
Dim instance As SPList
Dim deleteBehavior As SPRelationshipDeleteBehavior
Dim returnValue As SPRelatedFieldCollection

returnValue = instance.GetRelatedFields(deleteBehavior)
public SPRelatedFieldCollection GetRelatedFields(
    SPRelationshipDeleteBehavior deleteBehavior
)

參數

傳回值

Type: Microsoft.SharePoint.SPRelatedFieldCollection
會從上層清單取得資訊子清單上的查閱欄位的相關資訊的集合。

備註

您可以使用GetRelatedFields方法來探索目前的清單中的欄位的查閱欄位中其他的清單,包括清單中之其他網站的目標。使用此多載縮小至刪除的項目上的特定條件約束置於目前清單的查閱欄位的查詢。

請參閱

參照

SPList class

SPList members

GetRelatedFields overload

Microsoft.SharePoint namespace

SPRelatedField

SPFieldLookup

SPRelationshipDeleteBehavior