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
)
參數
deleteBehavior
Type: Microsoft.SharePoint.SPRelationshipDeleteBehavior會指定刪除限制式來作為篩選器列舉值。
傳回值
Type: Microsoft.SharePoint.SPRelatedFieldCollection
會從上層清單取得資訊子清單上的查閱欄位的相關資訊的集合。
備註
您可以使用GetRelatedFields方法來探索目前的清單中的欄位的查閱欄位中其他的清單,包括清單中之其他網站的目標。使用此多載縮小至刪除的項目上的特定條件約束置於目前清單的查閱欄位的查詢。