Windows-powershell / PowerShell-master /src /Microsoft.PowerShell.Commands.Utility /commands /utility /GetHostCmdlet.cs
| // Copyright (c) Microsoft Corporation. | |
| // Licensed under the MIT License. | |
| using System.Management.Automation; | |
| namespace Microsoft.PowerShell.Commands | |
| { | |
| /// <summary> | |
| /// Writes the PSHost object to the success stream. | |
| /// </summary> | |
| [] | |
| [] | |
| public | |
| class GetHostCommand : PSCmdlet | |
| { | |
| /// <summary> | |
| /// See base class. | |
| /// </summary> | |
| protected override void BeginProcessing() | |
| { | |
| WriteObject(this.Host); | |
| } | |
| } | |
| } | |