// 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.Iis { using WixToolset.Data; using WixToolset.Iis.Tuples; public static partial class IisTupleDefinitions { public static readonly IntermediateTupleDefinition IIsFilter = new IntermediateTupleDefinition( IisTupleDefinitionType.IIsFilter.ToString(), new[] { new IntermediateFieldDefinition(nameof(IIsFilterTupleFields.Name), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(IIsFilterTupleFields.ComponentRef), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(IIsFilterTupleFields.Path), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(IIsFilterTupleFields.WebRef), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(IIsFilterTupleFields.Description), IntermediateFieldType.String), new IntermediateFieldDefinition(nameof(IIsFilterTupleFields.Flags), IntermediateFieldType.Number), new IntermediateFieldDefinition(nameof(IIsFilterTupleFields.LoadOrder), IntermediateFieldType.Number), }, typeof(IIsFilterTuple)); } } namespace WixToolset.Iis.Tuples { using WixToolset.Data; public enum IIsFilterTupleFields { Name, ComponentRef, Path, WebRef, Description, Flags, LoadOrder, } public class IIsFilterTuple : IntermediateTuple { public IIsFilterTuple() : base(IisTupleDefinitions.IIsFilter, null, null) { } public IIsFilterTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisTupleDefinitions.IIsFilter, sourceLineNumber, id) { } public IntermediateField this[IIsFilterTupleFields index] => this.Fields[(int)index]; public string Name { get => this.Fields[(int)IIsFilterTupleFields.Name].AsString(); set => this.Set((int)IIsFilterTupleFields.Name, value); } public string ComponentRef { get => this.Fields[(int)IIsFilterTupleFields.ComponentRef].AsString(); set => this.Set((int)IIsFilterTupleFields.ComponentRef, value); } public string Path { get => this.Fields[(int)IIsFilterTupleFields.Path].AsString(); set => this.Set((int)IIsFilterTupleFields.Path, value); } public string WebRef { get => this.Fields[(int)IIsFilterTupleFields.WebRef].AsString(); set => this.Set((int)IIsFilterTupleFields.WebRef, value); } public string Description { get => this.Fields[(int)IIsFilterTupleFields.Description].AsString(); set => this.Set((int)IIsFilterTupleFields.Description, value); } public int Flags { get => this.Fields[(int)IIsFilterTupleFields.Flags].AsNumber(); set => this.Set((int)IIsFilterTupleFields.Flags, value); } public int? LoadOrder { get => this.Fields[(int)IIsFilterTupleFields.LoadOrder].AsNullableNumber(); set => this.Set((int)IIsFilterTupleFields.LoadOrder, value); } } }