Partager via


FieldLookup.LookupField - Propriété

Gets or sets a value that specifies the internal field name of the field used 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 LookupField As String
    Get
    Set
'Utilisation
Dim instance As FieldLookup
Dim value As String

value = instance.LookupField

instance.LookupField = value
public string LookupField { get; set; }

Valeur de propriété

Type : System.String
Returns a String instance representing the internal field name of the field used as the lookup values.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

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

The target of the LookupField property must be one of the following field types:

  • FieldType.Counter

  • FieldType.DateTime

  • FieldType.Number

  • FieldType.Text

In addition, FieldType.Computed is allowed as a target if lookups are enabled. For more information, see the EnableLookup property of the FieldComputed class. The FieldType.Calculated field type can be a target if the output is text. For more information, see the OutputType property of the FieldCalculated class.

Voir aussi

Référence

FieldLookup classe

FieldLookup - Membres

Microsoft.SharePoint.Client - Espace de noms