winget-cli

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

PSFoundCatalogPackage.cs (1241B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="PSFoundCatalogPackage.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.WinGet.Client.Engine.PSObjects
      8 {
      9     using Microsoft.Management.Deployment;
     10 
     11     /// <summary>
     12     /// FoundCatalogPackage wrapper object for displaying to PowerShell.
     13     /// </summary>
     14     public sealed class PSFoundCatalogPackage : PSCatalogPackage
     15     {
     16         /// <summary>
     17         /// Initializes a new instance of the <see cref="PSFoundCatalogPackage"/> class.
     18         /// </summary>
     19         /// <param name="catalogPackage">The catalog package COM object.</param>
     20         internal PSFoundCatalogPackage(CatalogPackage catalogPackage)
     21             : base(catalogPackage)
     22         {
     23         }
     24 
     25         /// <summary>
     26         /// Gets the default install version of the catalog package.
     27         /// </summary>
     28         public string? Version
     29         {
     30             get { return this.CatalogPackageCOM.DefaultInstallVersion?.Version; }
     31         }
     32     }
     33 }