Share via


InstallPackage Class

This element is introduced in Windows PowerShell 5.0.

Namespace: Microsoft.PowerShell.OneGet.CmdLets
Assembly: Microsoft.PowerShell.OneGet (in Microsoft.PowerShell.OneGet.dll)

Usage

'Usage
Dim instance As InstallPackage

Syntax

'Declaration
<CmdletAttribute("Install", "Package", SupportsShouldProcess:=True, DefaultParameterSetName:="PackageBySearch")> _
Public NotInheritable Class InstallPackage
    Inherits CmdletWithSearchAndSource
[CmdletAttribute("Install", "Package", SupportsShouldProcess=true, DefaultParameterSetName="PackageBySearch")] 
public sealed class InstallPackage : CmdletWithSearchAndSource
[CmdletAttribute(L"Install", L"Package", SupportsShouldProcess=true, DefaultParameterSetName=L"PackageBySearch")] 
public ref class InstallPackage sealed : public CmdletWithSearchAndSource
/** @attribute CmdletAttribute("Install", "Package", SupportsShouldProcess=true, DefaultParameterSetName="PackageBySearch") */ 
public final class InstallPackage extends CmdletWithSearchAndSource
CmdletAttribute("Install", "Package", SupportsShouldProcess=true, DefaultParameterSetName="PackageBySearch") 
public final class InstallPackage extends CmdletWithSearchAndSource

Inheritance Hierarchy

System.Object
   System.Management.Automation.Internal.InternalCommand
     System.Management.Automation.Cmdlet
       System.Management.Automation.PSCmdlet
         Microsoft.OneGet.Utility.PowerShell.AsyncCmdlet
           Microsoft.PowerShell.OneGet.CmdLets.CmdletBase
             Microsoft.PowerShell.OneGet.CmdLets.CmdletWithProvider
               Microsoft.PowerShell.OneGet.CmdLets.CmdletWithSearch
                 Microsoft.PowerShell.OneGet.CmdLets.CmdletWithSearchAndSource
                  Microsoft.PowerShell.OneGet.CmdLets.InstallPackage

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Target Platforms

See Also

Reference

InstallPackage Members
Microsoft.PowerShell.OneGet.CmdLets Namespace