Class RemoteTranslationMemory
Base class used by ServerBasedTranslationMemory and CloudBasedTranslationMemory
Inherited Members
Namespace: SdlSdl.LanguagePlatformTranslationMemoryApi
Assembly: Sdl.LanguagePlatform.TranslationMemoryApi.dll
Syntax
public abstract class RemoteTranslationMemory : INotifyPropertyChanged, IEditableObject
Constructors
RemoteTranslationMemory(TranslationMemoryEntity)
Declaration
protected RemoteTranslationMemory(TranslationMemoryEntity entity)
Parameters
Type | Name | Description |
---|---|---|
Sdl.Desktop.Platform.ServerConnectionPlugin.Entities.TranslationMemoryEntity | entity |
Properties
BackupEntity
Declaration
protected TranslationMemoryEntity BackupEntity { get; }
Property Value
Type | Description |
---|---|
Sdl.Desktop.Platform.ServerConnectionPlugin.Entities.TranslationMemoryEntity |
Copyright
Gets or sets the copyright of the translation memory.
Declaration
[StringLength(1024, ErrorMessage = "Copyright too long!")]
public string Copyright { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
ObjectDeletedException | Thrown when this object has been deleted. |
CreationDate
Gets the creation date of this translation memory.
Declaration
public DateTime CreationDate { get; }
Property Value
Type | Description |
---|---|
DateTime |
Exceptions
Type | Condition |
---|---|
ObjectDeletedException | Thrown when this object has been deleted. |
Description
Gets or sets the description of the tm.
Declaration
[StringLength(255, ErrorMessage = "Description too long!")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
ObjectDeletedException | Thrown when this object has been deleted. |
FuzzyIndexes
Gets or sets the set of fuzzy indices defined on this TM.
Declaration
public FuzzyIndexes FuzzyIndexes { get; set; }
Property Value
Type | Description |
---|---|
FuzzyIndexes |
Exceptions
Type | Condition |
---|---|
ObjectDeletedException | Thrown when this object has been deleted. |
Id
Gets or sets a unique Id for this database server.
Declaration
public Guid Id { get; }
Property Value
Type | Description |
---|---|
Guid |
Remarks
This is auto-generated by the system.
Exceptions
Type | Condition |
---|---|
ObjectDeletedException | Thrown when this object has been deleted. |
IsDeleted
Returns
true
if this translation memory has been deleted.
Declaration
public bool IsDeleted { get; }
Property Value
Type | Description |
---|---|
bool |
IsNewObject
Returns
true
if this translation memory has not been saved yet.
Declaration
public bool IsNewObject { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets the user-friendly name of this provider. It is not necessarily unique across the system.
Declaration
[Required(ErrorMessage = "Required Field")]
[StringLength(150, ErrorMessage = "Name too long!")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
ObjectDeletedException | Thrown when this object has been deleted. |
Recognizers
Gets or sets the recognizers which are enabled for this TM.
Declaration
public BuiltinRecognizers Recognizers { get; set; }
Property Value
Type | Description |
---|---|
BuiltinRecognizers |
Exceptions
Type | Condition |
---|---|
ObjectDeletedException | Thrown when this object has been deleted. |
Methods
OnPropertyChanged(string)
Declaration
protected void OnPropertyChanged(string property)
Parameters
Type | Name | Description |
---|---|---|
string | property |
VerifyNotDeleted()
Verifies that translation memory has not been deleted.
Declaration
protected void VerifyNotDeleted()