From e1f3494356e5a0a9a69d822a3d2129e71a1e5637 Mon Sep 17 00:00:00 2001 From: June Blender Date: Wed, 24 Aug 2016 14:52:44 -0600 Subject: [PATCH] Add missing OutputType attribute. (#2052) * Add missing OutputType attribute. * Adding OutputType attribute with accurate output types, including PSObject for PSCustomObject (using Property parameter --- .../commands/management/GetComputerInfoCommand.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs index 8c4aeb99e..6cfd0662d 100644 --- a/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Management/commands/management/GetComputerInfoCommand.cs @@ -25,6 +25,7 @@ namespace Microsoft.PowerShell.Commands [Cmdlet(VerbsCommon.Get, "ComputerInfo", HelpUri = "http://go.microsoft.com/fwlink/?LinkId=799466")] [Alias("gin")] + [OutputType(typeof(ComputerInfo), typeof(PSObject))] public class GetComputerInfoCommand : PSCmdlet { #region Inner Types