SPFieldLookup.IsRelationship 属性

获取或设置一个Boolean值,该值指示是否可检测到从列表中查找其值的查阅字段。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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; }

属性值

类型:System.Boolean
true如果字段是列表中它被发现看上去实现其价值 ;否则为false。

备注

查阅字段是可从列表到上去实现其价值的源列表中的GetRelatedFields()方法返回一个集合,其中包含查阅字段有关的信息的SPRelatedField对象时发现的。

IsRelationship属性返回的SPFieldLookup对象表示第二列中的多个列查找,如果该值为 false。第二列不是从源列表中可检测到。

如果IsRelationship属性返回 true,则可以调用GetDependentLookupInternalNames()方法来获取任何依赖关系的源列表的当前SPFieldLookup对象的查阅字段的内部名称。

另请参阅

引用

SPFieldLookup 类

SPFieldLookup 成员

Microsoft.SharePoint 命名空间

IsDependentLookup

GetDependentLookupInternalNames()

GetRelatedFields()

SPRelatedField