Search Results for

    Show / Hide Table of Contents

    Class PersistentObjectToken

    Encapsulates the primary key of a PersistentObject, such as a TM, TU, or Field Declaration.

    Inheritance
    object
    PersistentObjectToken
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Sdl.LanguagePlatform.TranslationMemory
    Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
    Syntax
    [DataContract]
    public sealed class PersistentObjectToken

    Constructors

    PersistentObjectToken()

    Initializes a new instance with default values.

    Declaration
    public PersistentObjectToken()

    PersistentObjectToken(int, Guid)

    Initializes a new instance with the specified ID and GUID.

    Declaration
    public PersistentObjectToken(int id, Guid guid)
    Parameters
    Type Name Description
    int id

    The object Id, usually its primary key.

    Guid guid

    The GUID to assign

    Properties

    Guid

    Gets or sets the object GUID (optional).

    Declaration
    [DataMember]
    public Guid Guid { get; set; }
    Property Value
    Type Description
    Guid

    The object GUID

    Id

    Gets or sets the object id, usually its primary key.

    Declaration
    [DataMember]
    public int Id { get; set; }
    Property Value
    Type Description
    int

    Methods

    Equals(object)

    System.Object.Equals(object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)

    GetHashCode()

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this object

    Overrides
    object.GetHashCode()

    ToString()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of the object, for display purposes.

    Overrides
    object.ToString()
    In this article
    • Constructors
      • PersistentObjectToken()
      • PersistentObjectToken(int, Guid)
    • Properties
      • Guid
      • Id
    • Methods
      • Equals(object)
      • GetHashCode()
      • ToString()
    Back to top Generated by DocFX