Class Identity
  
  Represents the identity of an item stored in the Dynamic Data Store
 
  
  
    Inheritance
    System.Object
    Identity
   
  
  Assembly: EPiServer.Data.dll
  Version: 12.0.3
  Syntax
  
    public class Identity : Object
   
  Constructors
  
  
  
  
  Identity()
  
  
  Declaration
  
  
  
  
  Identity(Guid)
  
  
  Declaration
  
    protected Identity(Guid externalId)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Guid | 
        externalId | 
         | 
      
    
  
  
  
  
  Identity(Guid, Int64, String)
  
  
  Declaration
  
    protected Identity(Guid externalId, long storeId, string storeName)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Guid | 
        externalId | 
         | 
      
      
        | System.Int64 | 
        storeId | 
         | 
      
      
        | System.String | 
        storeName | 
         | 
      
    
  
  
  
  
  Identity(String)
  
  
  Declaration
  
    protected Identity(string value)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        value | 
         | 
      
    
  
  Properties
  
  
  
  
  ExternalId
  The external part of the identity
 
  
  Declaration
  
    public Guid ExternalId { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Guid | 
         | 
      
    
  
  
  
  
  StoreId
  The store part of the identity
 
  
  Declaration
  
    public long StoreId { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int64 | 
         | 
      
    
  
  Methods
  
  
  
  
  Copy()
  
  
  Declaration
  
  Returns
  
  
  
  
  Equals(Object)
  
  
  Declaration
  
    public override bool Equals(object obj)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Object | 
        obj | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  
  
  
  NewIdentity()
  
  
  Declaration
  
    public static Identity NewIdentity()
   
  Returns
  
  
  
  
  NewIdentity(Guid)
  Creates a new instance of a Identity using the externalId
 
  
  Declaration
  
    public static Identity NewIdentity(Guid externalId)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Guid | 
        externalId | 
        The value to use for the ExternalId 
 | 
      
    
  
  Returns
  
  
  
  
  Parse(String)
  Parses the string and tries to create a new instance of a Identity
 
  
  Declaration
  
    public static Identity Parse(string value)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        value | 
        The System.String 
 | 
      
    
  
  Returns
  
  Exceptions
  
    
      
        | Type | 
        Condition | 
      
    
    
      
        | System.FormatException | 
        Thrown when the format of value is incorrect 
 | 
      
    
  
  
  
  
  ToString()
  Converts the objects to it's string representation.
The string returned can be passed back to the Parse(String) method to reconstruct the object
 
  
  Declaration
  
    public override string ToString()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.String | 
        A System.String 
 | 
      
    
  
  
  
  
  TryParse(String, out Identity)
  Parses the string and tries to create a new instance of a Identity
 
  
  Declaration
  
    public static bool TryParse(string value, out Identity id)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        value | 
        The System.String 
 | 
      
      
        | Identity | 
        id | 
        The new Identity or null os the format of value is incorrect 
 | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
        true if a new Identity instance has been created, otherwise false 
 | 
      
    
  
  Operators
  
  
  
  
  Equality(Identity, Identity)
  
  
  Declaration
  
    public static bool operator ==(Identity obj1, Identity obj2)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
  
  
  Implicit(Guid to Identity)
  
  
  Declaration
  
    public static implicit operator Identity(Guid externalId)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Guid | 
        externalId | 
        The value to use for the ExternalId 
 | 
      
    
  
  Returns
  
  
  
  
  Inequality(Identity, Identity)
  
  
  Declaration
  
    public static bool operator !=(Identity obj1, Identity obj2)
   
  Parameters
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  Extension Methods