Свойство FieldLookup.LookupList
Gets or sets a value that specifies the list identifier of the list that contains the field to use as the lookup values.
Пространство имен: 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 LookupList As String
Get
Set
'Применение
Dim instance As FieldLookup
Dim value As String
value = instance.LookupList
instance.LookupList = value
public string LookupList { get; set; }
Значение свойства
Тип: System.String
Returns a String instance representing the list identifier of the list that contains the field to use as the lookup values.
Исключения
Исключение | Условие |
---|---|
[Microsoft.SharePoint.SPException] | Thrown when attempting to change the value after this property was previously set or the server does not allow properties of the field to be changed. Error code: -2146232832. |
[System.NotSupportedException] | When the property is read and the list that this field belongs to is an external list. Error code: -1. |
Замечания
This property returns the string representation of the source list's ID() property. The LookupList property is set automatically when you create an FieldLookup object by calling the AddLookup(String, Guid, Boolean) or AddDependentLookup(String, Guid) method of the FieldCollection object that represents the field collection for the list where you want to add the lookup column.
Важно!
Once a lookup column is established, the target list cannot be changed.