Свойство FieldLookup.IsRelationship
Gets or sets a value that specifies whether this lookup field is returned by GetRelatedField() from the list being looked up to.
Пространство имен: 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
Returns Booleantrue if this lookup field is returned by P:Microsoft.SharePoint.Client.List.GetRelatedField from the list being looked up to otherwise returns false. The default value is
Исключения
Исключение | Условие |
---|---|
[System.NotSupportedException] | When the property is read and the list that this field belongs to is an external list. Error code: -1. |
Замечания
A lookup field is discoverable from the list to which it looks for its value when the source list's GetRelatedFields() method returns a collection that contains an RelatedField object with information about the lookup field.
The IsRelationship property returns false if the FieldLookup object represents a secondary column in a multiple column lookup. Secondary columns are not discoverable from the source list.
If the IsRelationship property returns true, you can call the GetDependentLookupInternalNames() method to get the internal names of any lookup fields that depend on the current FieldLookup object for their relationship to the source list.