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