FieldLookup.LookupList - Propriété
Gets or sets a value that specifies the list identifier of the list that contains the field to use as the lookup values.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Property LookupList As String
Get
Set
'Utilisation
Dim instance As FieldLookup
Dim value As String
value = instance.LookupList
instance.LookupList = value
public string LookupList { get; set; }
Valeur de propriété
Type : System.String
Returns a String instance representing the list identifier of the list that contains the field to use as the lookup values.
Exceptions
Exception | Condition |
---|---|
[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. |
Remarques
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.
Important
Once a lookup column is established, the target list cannot be changed.