AsyncVoidMethodBuilder.SetStateMachine Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Associates the builder with the specified state machine.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- stateMachine
- Type: System.Runtime.CompilerServices.IAsyncStateMachine
The state machine instance to associate with the builder.
| Exception | Condition |
|---|---|
| ArgumentNullException | stateMachine is null. |
| InvalidOperationException | The state machine was previously set. |
Show: