Click or drag to resize

AdapterCollectionBaseTTryCreateAdapter Method

Attempts to create an IAdapter from the specified DataRow.

Namespace: GSF.TimeSeries.Adapters
Assembly: GSF.TimeSeries (in GSF.TimeSeries.dll) Version: 2.4.218-beta
Syntax
public virtual bool TryCreateAdapter(
	DataRow adapterRow,
	out T adapter
)
View Source

Parameters

adapterRow  DataRow
DataRow containing item information to initialize.
adapter  T
Initialized adapter if successful; otherwise null.

Return Value

Boolean
true if item was successfully initialized; otherwise false.
Exceptions
ExceptionCondition
NullReferenceExceptionadapterRow is null.
Remarks
See DataSource property for expected DataRow column names.
See Also