Class AppliedPenalty
Represents the penalty applied to a search result.
Inheritance
System.Object
AppliedPenalty
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.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. |
System.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 |
---|---|---|
System.String | filterName | The filter name. |
System.Int32 | malus | The penalty cost. |
Fields
FilterName
Gets or sets the filter name. Default value: null.
Declaration
public string FilterName
Field Value
Type | Description |
---|---|
System.String |
Malus
Gets or sets the penalty cost. Default value: 0.
Declaration
public int Malus
Field Value
Type | Description |
---|---|
System.Int32 |
Type
Gets or sets the penalty type.
Declaration
public PenaltyType Type
Field Value
Type | Description |
---|---|
PenaltyType |