Request.CallPowerShell Method

This element is introduced in Windows PowerShell 5.0.

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

Usage

'Usage
Dim instance As Request
Dim args As Object()
Dim returnValue As Object

returnValue = instance.CallPowerShell(args)

Syntax

'Declaration
Public Function CallPowerShell ( _
    ParamArray args As Object() _
) As Object
public Object CallPowerShell (
    params Object[] args
)
public:
Object^ CallPowerShell (
    ... array<Object^>^ args
)
public Object CallPowerShell (
    Object[] args
)
public function CallPowerShell (
    ... args : Object[]
) : Object

Parameters

  • args

Return Value

Returns Object.

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

Request Class
Request Members
Microsoft.OneGet.MetaProvider.PowerShell Namespace