Click or drag to resize
AsyncTaskMethodBuilderTResultSetStateMachine Method
This API is preliminary and subject to change.
Associates the builder with the state machine it represents.

Namespace: System.Runtime.CompilerServices
Assembly: Rackspace.Threading (in Rackspace.Threading.dll) Version: 2.1.0-beta1
Syntax
public void SetStateMachine(
	IAsyncStateMachine stateMachine
)

Parameters

stateMachine
Type: System.Runtime.CompilerServicesIAsyncStateMachine
The heap-allocated state machine object.
Exceptions
ExceptionCondition
ArgumentNullException If stateMachine is .
InvalidOperationExceptionThe builder is incorrectly initialized.
Version Information

.NET Framework

Supported in: 3.5

Threading Library

Supported in: 2.1
See Also