Invokes the script block with the specified arguments, returning the results as
PSObject objects.
Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Dim instance As ScriptBlock
Dim args As Object()
Dim returnValue As Collection(Of PSObject)
returnValue = instance.Invoke(args)
Public Function Invoke ( _
ParamArray args As Object() _
) As Collection(Of PSObject)
public Collection<PSObject> Invoke (
params Object[] args
)
public:
Collection<PSObject^>^ Invoke (
... array<Object^>^ args
)
public Collection<PSObject> Invoke (
Object[] args
)
public function Invoke (
... args : Object[]
) : Collection<PSObject>
Parameters
- args
The arguments that are needed by the commands or expressions in the script block.
Return Value
A collection of PSObject objects whose base objects are the results of the invocation.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Development Platforms
Windows Server 2008, Windows Vista, Windows Server 2003, Windows XP, Windows 7, Windows 2008 R2 Target Platforms
Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP, Windows 7, Windows 2008 R2