Search Results for

    Show / Hide Table of Contents

    Class ImportResult

    Encapsulates information about the result of an import operation.

    Inheritance
    object
    ImportResult
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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
    Type Name Description
    Action action

    The action.

    ErrorCode errorCode

    The error code.

    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
    ErrorCode

    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
    PersistentObjectToken

    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
    Overrides
    object.ToString()
    In this article
    • Constructors
      • ImportResult()
      • ImportResult(Action)
      • ImportResult(Action, ErrorCode)
    • Properties
      • Action
      • ErrorCode
      • TuId
    • Methods
      • SetAdd()
      • SetDiscard()
      • SetMerge()
      • SetOverwrite()
      • SetUpdateErrorCode()
      • ToString()
    Back to top Generated by DocFX