Share via


SPFieldLinkCollection class

表示內容的型別中的資料行或欄位參考的集合。

Inheritance hierarchy

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

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

Syntax

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

備註

如果您想要追蹤特定的項目中繼資料內容型別中,您可以參考該中繼資料表示的資料行。不過,您無法建立內容的型別 ; 內的資料行您必須分別建立資料行,然後在內容類型定義中參考它。如此一來,當您新增資料行內容型別時,內容型別包含參考資料行或欄位,而非資料行或欄位本身。

資料行或欄位的參考包含完整的欄位定義的屬性的子集。這些是您可以自訂它存在於內容類型的資料行的屬性。

如需詳細資訊,請參閱Fields and Field References

SPContentType物件包含SPFieldLinkCollection和SPFieldCollection物件。

SPFieldCollection物件為您提供的資料行的屬性組合的檢視存在於該內容的型別中。每個SPField物件代表資料行或欄位的定義,加上已被覆寫,在該內容類型的欄位參照這些屬性的所有的屬性。

當您存取SPField物件內容的型別中時, SharePoint Foundation將合併欄位參考的欄位定義,並傳回結果的SPField物件。這是很有幫助,因為您不需要查閱欄位定義及所有的屬性中該欄位定義會覆寫該內容類型的欄位參考。

沒有 1-1 之間的關聯性中的SPFieldLinkCollection和SPFieldCollection物件的項目。針對每個SPFieldLink ,您將加入至內容的型別, SharePoint Foundation會加入內容的型別中定義對應的SPField物件,表示該資料行,合併的檢視。

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.

請參閱

參照

SPFieldLinkCollection members

Microsoft.SharePoint namespace

SPFieldLink

SPContentType

其他資源

Fields and Field References

Introduction to Columns