Class Identifier
The Identifier class is a data model representing an identifier for a Identifier within the social platform.
Inheritance
System.Object
Identifier
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Common
Assembly: EPiServer.Social.Common.dll
Version: 1.5.4Syntax
public abstract class Identifier
Constructors
Identifier(String)
Constructor
Declaration
public Identifier(string id)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | String-based identifier for an item |
Properties
Id
Gets the underlying, string-based, identifier representing this Identifier instance.
Declaration
public string Id { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
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 Identifier have the same value of the underlying identifier, else returns false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Returns a hash code representative of this Identifier.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | A 32-bit signed integer hash code. |
Overrides
System.Object.GetHashCode()
ToReference()
Returns a reference representation of this Identifier.
Declaration
public virtual Reference ToReference()
Returns
| Type | Description |
|---|---|
| Reference | Reference representation of this Identifier |
ToString()
Returns a string representation of this Identifier.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | String representation of this Identifier |
Overrides
System.Object.ToString()