Class ImportResult
Encapsulates information about the result of an import operation.
Inherited Members
Namespace: Sdl.LanguagePlatform .TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
[DataContract]
public class ImportResult
Constructors
ImportResult()
Initializes a new instance with default values.
Declaration
public ImportResult()
ImportResult(Action)
Initializes a new instance of the ImportResult class with the specified action.
Declaration
public ImportResult(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action | The action. |
ImportResult(Action, ErrorCode)
Initializes a new instance of the ImportResult class with the specified action, error code and error message.
Declaration
public ImportResult(Action action, ErrorCode errorCode)
Parameters
Properties
Action
Gets or sets the action.
Declaration
[DataMember]
public Action Action { get; set; }
Property Value
Type | Description |
---|---|
Action |
ErrorCode
Gets or sets the error code.
Declaration
[DataMember]
public ErrorCode ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
Error |
TuId
Gets or sets the translation unit ID for which this instance was created.
Declaration
[DataMember]
public PersistentObjectToken TuId { get; set; }
Property Value
Type | Description |
---|---|
Persistent |
Methods
SetAdd()
Declaration
public void SetAdd()
SetDiscard()
Used to set duplicate status
Declaration
public void SetDiscard()
SetMerge()
Used to set update status
Declaration
public void SetMerge()
SetOverwrite()
Declaration
public void SetOverwrite()
SetUpdateErrorCode()
Declaration
public void SetUpdateErrorCode()
ToString()
Show usefull information about the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |