Condividi tramite


FieldLookup.PrimaryFieldId Property

Gets or sets a value that specifies the primary lookup field identifier if this is a dependent lookup field Otherwise, it is an empty string.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
Public Property PrimaryFieldId As String
    Get
    Set
'Usage
Dim instance As FieldLookup
Dim value As String

value = instance.PrimaryFieldId

instance.PrimaryFieldId = value
[RemoteAttribute]
public string PrimaryFieldId { get; set; }

Property Value

Type: System.String
Returns a String instance representing the primary lookup field identifier.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPExceptio006E]

Not a valid GUID. Error code: -2146232832.

[System.NotSupportedException]

When the list that this field belongs to is an external list. Error code: -1.

See Also

Reference

FieldLookup Class

FieldLookup Members

Microsoft.SharePoint.Client Namespace