CommandReceive.EndTryReceive メソッド

コマンド キューからコマンドを受信するために非同期操作を完了します。

名前空間: Microsoft.ApplicationServer.StoreManagement.Control
アセンブリ: Microsoft.ApplicationServer.StoreManagement (microsoft.applicationserver.storemanagement.dll)

使用法

構文

'宣言
<SuppressMessageAttribute("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId:="1#", Justification:="API specification")> _
Public MustOverride Function EndTryReceive ( _
    result As IAsyncResult, _
    <OutAttribute> ByRef command As ReceivedInstanceCommand _
) As Boolean
[SuppressMessageAttribute("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId="1#", Justification="API specification")] 
public abstract bool EndTryReceive (
    IAsyncResult result,
    out ReceivedInstanceCommand command
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1021:AvoidOutParameters", MessageId=L"1#", Justification=L"API specification")] 
public:
virtual bool EndTryReceive (
    IAsyncResult^ result, 
    [OutAttribute] ReceivedInstanceCommand^% command
) abstract
/** @attribute SuppressMessageAttribute("Microsoft.Design", "CA1021:AvoidOutParameters", MessageId="1#", Justification="API specification") */ 
public abstract boolean EndTryReceive (
    IAsyncResult result, 
    /** @attribute OutAttribute() */ /** @ref */ ReceivedInstanceCommand command
)

パラメーター

  • result
    BeginTryReceive メソッドへの呼び出しにより返される IAsyncResult オブジェクトです。
  • command
    InstanceCommandContext オブジェクトを取得し、コマンドの実行を完了または破棄するためにそのオブジェクトに対してメソッドを呼び出すためにクライアントが使用できる ReceivedInstanceCommand 型のオブジェクトです。

戻り値

操作が成功した場合は true になり、それ以外の場合は false になります。

スレッド セーフ

この型のパブリック静的 (Visual Basic では Shared ) メンバーはスレッド セーフです。インスタンスのメンバーはいずれも、スレッド セーフである保証はありません。

プラットフォーム

開発プラットフォーム

Visual Studio 2010 およびそれ以降, .NET Framework 4

対象プラットフォーム

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

関連項目

参照

CommandReceive クラス
CommandReceive メンバー
Microsoft.ApplicationServer.StoreManagement.Control 名前空間