// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Management; using System.Management.Automation; using System.Runtime.InteropServices; using System.Text; namespace Microsoft.WSMan.Management { #region SnapIn /// /// Create the PowerShell snap-in used to register the /// WsManPSSnapIn cmdlets. Declaring the PSSnapIn class identifies /// this .cs file as a PowerShell snap-in. /// [RunInstaller(true)] public class WSManPSSnapIn : PSSnapIn { /// /// Create an instance of the WsManSnapin class. /// public WSManPSSnapIn() : base() { } /// /// Specify the name of the PowerShell snap-in. /// public override string Name { get { return "WsManPSSnapIn"; } } /// /// Specify the vendor for the PowerShell snap-in. /// public override string Vendor { get { return "Microsoft"; } } /// /// Specify the localization resource information for the vendor. /// Use the format: resourceBaseName,VendorName. /// public override string VendorResource { get { return "WsManPSSnapIn,Microsoft"; } } /// /// Specify a description of the PowerShell snap-in. /// public override string Description { get { return "This is a PowerShell snap-in that includes the WsMan cmdlets."; } } /// /// Specify the localization resource information for the description. /// Use the format: resourceBaseName,Description. /// public override string DescriptionResource { get { return "WsManPSSnapIn,This is a PowerShell snap-in that includes the WsMan cmdlets."; } } } #endregion SnapIn }