GetAllUnitsResult.cs (1705B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="GetAllUnitsResult.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.Management.Configuration.Processor.Unit 8 { 9 using System.Collections.Generic; 10 using Microsoft.Management.Configuration; 11 using Windows.Foundation.Collections; 12 13 /// <summary> 14 /// Implements IGetAllUnitsResult. 15 /// </summary> 16 internal partial class GetAllUnitsResult : IGetAllUnitsResult 17 { 18 /// <summary> 19 /// Initializes a new instance of the <see cref="GetAllUnitsResult"/> class. 20 /// </summary> 21 /// <param name="unit">The configuration unit that the result is for.</param> 22 public GetAllUnitsResult(ConfigurationUnit unit) 23 { 24 this.Unit = unit; 25 } 26 27 /// <summary> 28 /// Gets the configuration unit that the result is for. 29 /// </summary> 30 public ConfigurationUnit Unit { get; private set; } 31 32 /// <inheritdoc/> 33 public IConfigurationUnitResultInformation ResultInformation 34 { 35 get { return this.InternalResult; } 36 } 37 38 /// <summary> 39 /// Gets the implementation object for ResultInformation. 40 /// </summary> 41 public ConfigurationUnitResultInformation InternalResult { get; } = new ConfigurationUnitResultInformation(); 42 43 /// <inheritdoc/> 44 public IList<ConfigurationUnit>? Units { get; internal set; } 45 } 46 }