winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

FilterAttribute.cs (1119B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="FilterAttribute.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.WinGet.Client.Engine.Attributes
      8 {
      9     using System;
     10     using Microsoft.Management.Deployment;
     11 
     12     /// <summary>
     13     /// A <see cref="FindPackagesOptions" /> is constructed by introspecting on the inheritance tree and
     14     /// looking for parameters that are marked with this attribute. Properties that are marked with this
     15     /// attribute are added to the <see cref="FindPackagesOptions" /> object.
     16     /// </summary>
     17     [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
     18     internal class FilterAttribute : Attribute
     19     {
     20         /// <summary>
     21         /// Gets or sets the field that the filter will be matching against.
     22         /// </summary>
     23         public PackageMatchField Field { get; set; }
     24     }
     25 }