다음을 통해 공유


SPFieldLookup.AllowMultipleValues Property

Gets or sets a Boolean value that specifies whether multiple values can be used in the lookup field.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Overridable Property AllowMultipleValues As Boolean
    Get
    Set
'Usage
Dim instance As SPFieldLookup
Dim value As Boolean

value = instance.AllowMultipleValues

instance.AllowMultipleValues = value
[ClientCallableAttribute]
public virtual bool AllowMultipleValues { get; set; }

Property Value

Type: System.Boolean
true to specify that multiple values can be used in the field; otherwise, false. The default is false.

Remarks

You cannot set a deletion constraint on a lookup field that allows multiple values.

See Also

Reference

SPFieldLookup Class

SPFieldLookup Members

Microsoft.SharePoint Namespace

FieldValueType

RelationshipDeleteBehavior