WorkItem ReadModel TModel  Method TIBCO Spotfire 6.0 API Reference
Allows reading the associated worker model in a thread-safe way.

Namespace: Spotfire.Dxp.Framework.Threading
Assembly: Spotfire.Dxp.Framework (in Spotfire.Dxp.Framework.dll) Version: 13.19.7018.3940 (13.19.7018.3940)
Syntax

public bool ReadModel<TModel>(
	Action<TModel> readAction
)
where TModel : DocumentNode

Parameters

readAction
Type: System Action TModel 
The read action delegate.
Type Parameters

TModel
The type of the worker model.

Return Value

Type: Boolean
true if the read values were still valid in the live document when the read transaction ended.
Remarks

The document node argument passed to the read action can be null. The returned value is equivalent to the value returned by IsResultValid.
See Also