共用方式為


FieldLookup.IsRelationship 屬性

取得或設定值,指定是否**GetRelatedField()**會傳回此查閱欄位從最所要尋找的清單。

命名空間:  Microsoft.SharePoint.Client
組件:   Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

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

value = instance.IsRelationship

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

屬性值

類型:System.Boolean
如果此查閱欄位從清單中所要尋找,否則會傳回false來傳回 P:Microsoft.SharePoint.Client.List.GetRelatedField,則傳回Booleantrue 。預設值是

例外狀況

例外狀況 條件
[System.NotSupportedException]

當屬性為唯讀,此欄位所屬的清單,外部清單。錯誤碼:-1。

備註

查閱欄位是要後的外觀其值的來源清單**GetRelatedFields()**方法會傳回包含 [查閱] 欄位的相關資訊RelatedField物件的集合清單中找到。

IsRelationship屬性會傳回 false 如果FieldLookup物件代表中多個資料行查閱的第二個資料行。次要欄都無法找到從來源清單。

如果IsRelationship屬性會傳回 true,您可以呼叫**GetDependentLookupInternalNames()**方法,以取得內部取決於來源清單及其關聯的目前FieldLookup物件的任何查閱欄位的名稱。

請參閱

參照

FieldLookup 類別

FieldLookup 成員

Microsoft.SharePoint.Client 命名空間