ISimpleWorkItemAsyncStateWatcher.Add(ISimpleWorkItemAsyncState) Method

Definition

Adds an async state to the pool of watched states.

public:
 Microsoft::SqlServer::Management::TaskForms::ISimpleWorkItemAsyncState ^ Add(Microsoft::SqlServer::Management::TaskForms::ISimpleWorkItemAsyncState ^ asyncState);
public Microsoft.SqlServer.Management.TaskForms.ISimpleWorkItemAsyncState Add (Microsoft.SqlServer.Management.TaskForms.ISimpleWorkItemAsyncState asyncState);
abstract member Add : Microsoft.SqlServer.Management.TaskForms.ISimpleWorkItemAsyncState -> Microsoft.SqlServer.Management.TaskForms.ISimpleWorkItemAsyncState
Public Function Add (asyncState As ISimpleWorkItemAsyncState) As ISimpleWorkItemAsyncState

Parameters

asyncState
ISimpleWorkItemAsyncState

Async state to be polled.

Returns

Newly added async state or an existing one if an identical one already exists.

Applies to