SPFieldUser.SelectionGroup Property
Gets or sets a value that represents the SPGroup to associate with a user.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
Public Property SelectionGroup As Integer
Get
Set
'Usage
Dim instance As SPFieldUser
Dim value As Integer
value = instance.SelectionGroup
instance.SelectionGroup = value
[ClientCallableAttribute]
public int SelectionGroup { get; set; }
Property Value
Type: System.Int32
ID of the SPGroup that is being associated with a user.
Remarks
A value of zero specifies that the user or object has not been associated with a Site group that has permissions to use the SPWeb page.
There is a one-to-one correspondence between the group ID and the group Name, but the names are implementation-dependent.