SPFieldUser.SelectionMode Property

Gets or sets a value that specifies whether only individuals or both individuals and groups can be selected as field values in forms for creating or editing list items.

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

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property SelectionMode As SPFieldUserSelectionMode
    Get
    Set
'Usage
Dim instance As SPFieldUser
Dim value As SPFieldUserSelectionMode

value = instance.SelectionMode

instance.SelectionMode = value
[ClientCallableAttribute]
public SPFieldUserSelectionMode SelectionMode { get; set; }

Property Value

Type: Microsoft.SharePoint.SPFieldUserSelectionMode
An SPFieldUserSelectionMode value that specifies whether individuals or both individuals and groups can be selected in forms.

See Also

Reference

SPFieldUser Class

SPFieldUser Members

Microsoft.SharePoint Namespace