CmdletBase.ShouldProcessPackageInstall Method

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

Usage

'Usage
Dim instance As CmdletBase
Dim packageName As String
Dim version As String
Dim source As String
Dim returnValue As Boolean

returnValue = instance.ShouldProcessPackageInstall(packageName, version, source)

Syntax

'Declaration
Public Overridable Function ShouldProcessPackageInstall ( _
    packageName As String, _
    version As String, _
    source As String _
) As Boolean
public virtual bool ShouldProcessPackageInstall (
    string packageName,
    string version,
    string source
)
public:
virtual bool ShouldProcessPackageInstall (
    String^ packageName, 
    String^ version, 
    String^ source
)
public boolean ShouldProcessPackageInstall (
    String packageName, 
    String version, 
    String source
)
public function ShouldProcessPackageInstall (
    packageName : String, 
    version : String, 
    source : String
) : boolean

Parameters

  • packageName
  • version
  • source

Return Value

Returns Boolean.

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

CmdletBase Class
CmdletBase Members
Microsoft.PowerShell.OneGet.CmdLets Namespace