共用方式為


SPFieldLookup.IsRelationship property

取得或設定指出是否有 [查詢] 欄位從清單中看起來其值設定為可探索的Boolean值。

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

Syntax

'宣告
Public Property IsRelationship As Boolean
    Get
    Set
'用途
Dim instance As SPFieldLookup
Dim value As Boolean

value = instance.IsRelationship

instance.IsRelationship = value
public bool IsRelationship { get; set; }

Property value

Type: System.Boolean
true如果欄位是可以從清單找到它會尋找其值 ;否則, false。

備註

[查詢] 欄位是設定為可探索從清單中,它會尋找其值時 [來源] 清單的GetRelatedFields()方法會傳回包含 [查詢] 欄位的相關資訊的SPRelatedField物件的集合。

IsRelationship屬性會傳回SPFieldLookup物件代表多個資料行對應中的第二個資料行如果則為 false。第二個資料行不是從 [來源] 清單中的色彩設定為可探索的。

如果IsRelationship屬性會傳回 true,則您可以呼叫GetDependentLookupInternalNames()方法,以取得目前的SPFieldLookup物件的來源] 清單中的色彩彼此之間的關係而定任何查閱欄位的內部名稱。

請參閱

參照

SPFieldLookup class

SPFieldLookup members

Microsoft.SharePoint namespace

IsDependentLookup

GetDependentLookupInternalNames()

GetRelatedFields()

SPRelatedField