Search Results for

    Show / Hide Table of Contents

    Class AppliedPenalty

    Represents the penalty applied to a search result.

    Inheritance
    object
    AppliedPenalty
    Inherited Members
    object.ToString()
    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 AppliedPenalty

    Constructors

    AppliedPenalty(PenaltyType, int)

    Initializes a new instance of the AppliedPenalty class with the specified type and cost.

    Declaration
    public AppliedPenalty(PenaltyType pt, int malus)
    Parameters
    Type Name Description
    PenaltyType pt

    The penalty type.

    int malus

    The penalty cost.

    AppliedPenalty(string, int)

    Initializes a new instance of the AppliedPenalty class with the specified filter name and cost.

    Declaration
    public AppliedPenalty(string filterName, int malus)
    Parameters
    Type Name Description
    string filterName

    The filter name.

    int malus

    The penalty cost.

    Fields

    FilterName

    Gets or sets the filter name. Default value: null.

    Declaration
    [DataMember]
    public string FilterName
    Field Value
    Type Description
    string

    Malus

    Gets or sets the penalty cost. Default value: 0.

    Declaration
    [DataMember]
    public int Malus
    Field Value
    Type Description
    int

    Type

    Gets or sets the penalty type.

    Declaration
    [DataMember]
    public PenaltyType Type
    Field Value
    Type Description
    PenaltyType
    In this article
    • Constructors
      • AppliedPenalty(PenaltyType, int)
      • AppliedPenalty(string, int)
    • Fields
      • FilterName
      • Malus
      • Type
    Back to top Generated by DocFX