印刷用ページ      送信     
クリックして評価とフィードバックをお寄せください
MSDN
MSDN ライブラリ

We were unable to locate this content in ja-jp.

Here is the same content in en-us.

ScriptBlock.Invoke Method
ScriptBlock.Invoke Method
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)

Visual Basic
Public Function Invoke ( _
    ParamArray args As Object() _
) As Collection(Of PSObject)
C#
public Collection<PSObject> Invoke (
    params Object[] args
)
C++
public:
Collection<PSObject^>^ Invoke (
    ... array<Object^>^ args
)
J#
public Collection<PSObject> Invoke (
    Object[] args
)
JScript
public function Invoke (
    ... args : Object[]
) : Collection<PSObject>

Parameters

args

Arguments 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.
Exception typeCondition
SessionStateOverflowException

The maximum scope depth has been exceeded.

RuntimeException

A script runtime exception has occurred

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

Target Platforms

Windows Server 2008, Windows Server 2003, Windows Vista, Windows XP
© 2008 Microsoft Corporation.All rights reserved. 使用条件  |  商標  |  プライバシー
Page view tracker