Class PersistentObjectToken
Encapsulates the primary key of a Persistent
Inherited Members
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
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.
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
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this object |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of the object, for display purposes. |