Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Close()WinRTでは、IAsyncOperation<T> ^オブジェクトを呼び出す必要がありますか?操作開始コード、または完了ハンドラーのいずれか?そうでない場合、なぜそこにあるのですか?
Close()
IAsyncOperation<T> ^
構文から、C ++/CXを使用しています。
C ++ / CXの場合、IAsyncOperation :: Closeはデストラクタで自動的に呼び出されるため、明示的に呼び出す必要はありません。
JSの場合、明示的に.close()を呼び出す必要があります。
C#の場合、IDisposableとして投影されるため、using()ステートメントが適切です。