The Relationship class describes the relationships that a user or portal owns. A handful of default Portal-Level Relationships will be be present for every portal (e.g. Friends, Followers, Family). Portal-Level Relationship will have a -1 in UserId field. Any custom User-Level Relationship created by user will also be defined by this class (e.g. My InLaws, Engineering Group). User-Relationship will always have an associcated PortalId. User-Level Relationship will always be tied to a specific Portal.

Namespace: DotNetNuke.Entities.Users.Social
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
[SerializableAttribute]
public class Relationship : BaseEntityInfo, 
	IHydratable
Visual Basic
<SerializableAttribute>
Public Class Relationship
	Inherits BaseEntityInfo
	Implements IHydratable

Inheritance Hierarchy

System..::..Object
  DotNetNuke.Entities..::..BaseEntityInfo
    DotNetNuke.Entities.Users.Social..::..Relationship

See Also