Class Member

The Member class is a data model describing a relationship associating a user with a social group.

Inheritance
System.Object
Member
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Groups.Core
Assembly: EPiServer.Social.Groups.Core.dll
Version: 1.5.4
Syntax
public class Member

Constructors

Member(Reference, GroupId, IEnumerable<RoleId>)

Constructor

Declaration
public Member(Reference userReference, GroupId groupId, IEnumerable<RoleId> roles = null)
Parameters
Type Name Description
Reference userReference

Reference which uniquely identifies the user assigned to a group

GroupId groupId

ID of the group to which the user is assigned

System.Collections.Generic.IEnumerable<RoleId> roles

A list of RoleIds that the member has assigned to them

Member(MemberId, Reference, GroupId)

Constructor

Declaration
public Member(MemberId id, Reference userReference, GroupId groupId)
Parameters
Type Name Description
MemberId id

Unique identifier for this member

Reference userReference

Reference which uniquely identifies the user assigned to a group

GroupId groupId

ID of the group to which the user is assigned

Member(MemberId, Reference, GroupId, IEnumerable<RoleId>)

Constructor

Declaration
public Member(MemberId id, Reference userReference, GroupId groupId, IEnumerable<RoleId> roles)
Parameters
Type Name Description
MemberId id

Unique identifier for this member

Reference userReference

Reference which uniquely identifies the user assigned to a group

GroupId groupId

ID of the group to which the user is assigned

System.Collections.Generic.IEnumerable<RoleId> roles

A list of RoleIds that the member has assigned to them

Properties

Group

Gets the ID of the group to which the user has been assigned as a member.

Declaration
public GroupId Group { get; }
Property Value
Type Description
GroupId

Id

Gets the unique identifier representing this member.

Declaration
public MemberId Id { get; }
Property Value
Type Description
MemberId

Roles

Gets the list of role IDs to which the user has been assigned

Declaration
public IEnumerable<RoleId> Roles { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<RoleId>

User

Gets the reference which uniquely identifies the user who is assigned as a member of the group.

Declaration
public Reference User { get; }
Property Value
Type Description
Reference
arrow_upward