SetStateMachine Method

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.

Namespace:  System.Runtime.CompilerServices
Assembly:  mscorlib (in mscorlib.dll)

public void SetStateMachine(
	IAsyncStateMachine stateMachine
)

Parameters

stateMachine
Type: System.Runtime.CompilerServices.IAsyncStateMachine
The state machine instance to associate with the builder.

ExceptionCondition
ArgumentNullException

stateMachine is null.

InvalidOperationException

The state machine was previously set.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft