Class PersistentObjectToken
Encapsulates the primary key of a PersistentObject, such as a TM, TU, or Field Declaration.
Inheritance
System.Object
PersistentObjectToken
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public sealed class PersistentObjectToken
Constructors
PersistentObjectToken()
Initializes a new instance with default values.
Declaration
public PersistentObjectToken()
PersistentObjectToken(Int32, Guid)
Initializes a new instance with the specified ID and GUID.
Declaration
public PersistentObjectToken(int id, Guid guid)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The object Id, usually its primary key. |
System.Guid | guid | The GUID to assign |
Properties
Guid
Gets or sets the object GUID (optional).
Declaration
public Guid Guid { get; set; }
Property Value
Type | Description |
---|---|
System.Guid | The object GUID |
Id
Gets or sets the object id, usually its primary key.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Equals(Object)
System.Object.Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
System.Object.GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for this object |
Overrides
System.Object.GetHashCode()
ToString()
System.Object.ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation of the object, for display purposes. |
Overrides
System.Object.ToString()