Click or drag to resize
CategoryInfoProviderGetAsync Method (String, Int32, NullableCancellationToken)
Asynchronously gets an instance of info object based on its code name and site ID.

Namespace: CMS.Taxonomy
Assembly: CMS.Taxonomy (in CMS.Taxonomy.dll) Version: 13.0.131
Syntax
C#
public override Task<CategoryInfo> GetAsync(
	string name,
	int siteId,
	Nullable<CancellationToken> cancellationToken = null
)

Parameters

name
Type: SystemString
Code name of the info object to look for.
siteId
Type: SystemInt32
ID of the site to which to constrain the lookup.
cancellationToken (Optional)
Type: SystemNullableCancellationToken
The cancellation instruction.

Return Value

Type: TaskCategoryInfo
Returns a task returning either an instance of CategoryInfo corresponding to name and siteId or null.

Implements

IInfoBySiteAndNameProviderTInfoGetAsync(String, Int32, NullableCancellationToken)
IInfoBySiteAndNameProviderTInfoGetAsync(String, Int32, NullableCancellationToken)
Exceptions
ExceptionCondition
NotSupportedExceptionThrown when CategoryInfo does not have the code name column.
See Also