// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. namespace WixToolset.Data.WindowsInstaller.Rows { /// /// Specialization of a row for the upgrade table. /// public sealed class UpgradeRow : Row { /// /// Creates an Upgrade row that belongs to a table. /// /// Original source lines for this row. /// Table this Upgrade row belongs to and should get its column definitions from. public UpgradeRow(SourceLineNumber sourceLineNumbers, Table table) : base(sourceLineNumbers, table) { } /// /// Gets and sets the upgrade code for the row. /// /// Upgrade code for the row. public string UpgradeCode { get { return (string)this.Fields[0].Data; } set { this.Fields[0].Data = value; } } /// /// Gets and sets the version minimum for the row. /// /// Version minimum for the row. public string VersionMin { get { return (string)this.Fields[1].Data; } set { this.Fields[1].Data = value; } } /// /// Gets and sets the version maximum for the row. /// /// Version maximum for the row. public string VersionMax { get { return (string)this.Fields[2].Data; } set { this.Fields[2].Data = value; } } /// /// Gets and sets the language for the row. /// /// Language for the row. public string Language { get { return (string)this.Fields[3].Data; } set { this.Fields[3].Data = value; } } /// /// Gets and sets the attributes for the row. /// /// Attributes for the row. public int Attributes { get { return (int)this.Fields[4].Data; } set { this.Fields[4].Data = value; } } /// /// Gets and sets the remove code for the row. /// /// Remove code for the row. public string Remove { get { return (string)this.Fields[5].Data; } set { this.Fields[5].Data = value; } } /// /// Gets and sets the action property for the row. /// /// Action property for the row. public string ActionProperty { get { return (string)this.Fields[6].Data; } set { this.Fields[6].Data = value; } } } }