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
public class AppliedPenalty
Constructors
AppliedPenalty(PenaltyType, Int32)
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. |
Int32 | malus | The penalty cost. |
AppliedPenalty(String, Int32)
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. |
Int32 | malus | The penalty cost. |
Fields
FilterName
Gets or sets the filter name. Default value: null.
Declaration
public string FilterName
Field Value
Type | Description |
---|---|
String |
Malus
Gets or sets the penalty cost. Default value: 0.
Declaration
public int Malus
Field Value
Type | Description |
---|---|
Int32 |
Type
Gets or sets the penalty type.
Declaration
public PenaltyType Type
Field Value
Type | Description |
---|---|
PenaltyType |