Click or drag to resize
AbstractInfoProviderTInfo, TProviderGetAsync Method (Int32, NullableCancellationToken)
Asynchronously gets an instance of info object based on its ID.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public virtual Task<TInfo> GetAsync(
	int id,
	Nullable<CancellationToken> cancellationToken = null
)

Parameters

id
Type: SystemInt32
ID of the info object to look for.
cancellationToken (Optional)
Type: SystemNullableCancellationToken
The cancellation instruction.

Return Value

Type: TaskTInfo
Returns a task returning either an instance of TInfo corresponding to id or null.

Implements

IInfoByIdProviderTInfoGetAsync(Int32, NullableCancellationToken)
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when TInfo does not have the ID column.
See Also