Click or drag to resize
IInfoByNameProviderTInfoGetAsync Method
Asynchronously gets an instance of info object based on its code name.

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

Parameters

name
Type: SystemString
Code name 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 name or null.
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when TInfo does not have the code name column.
See Also