Class MemberId
The MemberId class is a data model representing an identifier for a Member within the social platform.
Inherited Members
Namespace: EPiServer.Social.Groups.Core
Assembly: EPiServer.Social.Groups.Core.dll
Version: 1.5.4Syntax
public class MemberId : Identifier
Constructors
MemberId(String)
Constructor
Declaration
public MemberId(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | String-based identifier for a member |
Properties
Empty
Returns a newly created MemberId instance representing an 'empty' member ID.
Declaration
public static MemberId Empty { get; }
Property Value
| Type | Description |
|---|---|
| MemberId |
Methods
Create()
Creates an empty MemberId.
Declaration
public static MemberId Create()
Returns
| Type | Description |
|---|---|
| MemberId | Empty MemberId instance |
Create(String)
Parses a member ID from a string-based identifier.
Declaration
public static MemberId Create(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | Identifer for the member |
Returns
| Type | Description |
|---|---|
| MemberId | Instance of MemberId representing the specified identifier |
Equals(Object)
Compares this instance with another object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | the object to compare with this instance. |
Returns
| Type | Description |
|---|---|
| System.Boolean | Returns true if this instance and another specified object, of type MemberId have the same value of the underlying comment identifier, else returns false. |
Overrides
GetHashCode()
Returns a hash code representative of this MemberId.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | A 32-bit signed integer hash code. |
Overrides
IsNullOrEmpty(MemberId)
Returns true if the specified MemberId has not been initialized or represents an empty member identifier, false otherwise.
Declaration
public static bool IsNullOrEmpty(MemberId id)
Parameters
| Type | Name | Description |
|---|---|---|
| MemberId | id | Member identifier to evaluate |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the MemberId is null or empty, false otherwise |
Operators
Equality(MemberId, MemberId)
Evaluates the equality of two MemberId instances.
Declaration
public static bool operator ==(MemberId a, MemberId b)
Parameters
| Type | Name | Description |
|---|---|---|
| MemberId | a | The operand on the left side of the equality operator. |
| MemberId | b | The operand on the right side of the equality operator. |
Returns
| Type | Description |
|---|---|
| System.Boolean | Returns true if the specified instances are equivalent, false otherwise. |
Inequality(MemberId, MemberId)
Evaluates two MemberId instances for inequality.
Declaration
public static bool operator !=(MemberId a, MemberId b)
Parameters
| Type | Name | Description |
|---|---|---|
| MemberId | a | The operand on the left side of the inequality operator. |
| MemberId | b | The operand on the right side of the inequality operator. |
Returns
| Type | Description |
|---|---|
| System.Boolean | Returns true if the specified instances are not equivalent, false otherwise. |