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

  低帯域幅での表示をオンにする

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

Here is the same content in en-us.

ScriptBlock.InvokeReturnAsIs Method
Runs the script block with the specified arguments. This method returns the raw (unwrapped) result objects so that it can be more efficient.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in system.management.automation.dll)
Dim instance As ScriptBlock
Dim args As Object()
Dim returnValue As Object

returnValue = instance.InvokeReturnAsIs(args)
Visual Basic
Public Function InvokeReturnAsIs ( _
    ParamArray args As Object() _
) As Object
C#
public Object InvokeReturnAsIs (
    params Object[] args
)
C++
public:
Object^ InvokeReturnAsIs (
    ... array<Object^>^ args
)
J#
public Object InvokeReturnAsIs (
    Object[] args
)
JScript
public function InvokeReturnAsIs (
    ... args : Object[]
) : Object

Parameters

args

The arguments to pass to this script block. The arguments show up in the script as $args.

Return Value

Returns Objects that are generated during the running of the script block. They may or may not be wrapped in PSObjects. It is up to the caller to check what type of object is returned.
Exception typeCondition
SessionStateOverflowException

The maximum scope depth has been exceeded.

RuntimeException

A script runtime exception occurred.

FlowControlException

An internal (non-public) exception was thrown from a flow control statement.

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
© 2009 Microsoft Corporation. All rights reserved. 使用条件  |  商標  |  プライバシー
Page view tracker