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

Namespace: CMS.Localization
Assembly: CMS.Globalization (in CMS.Globalization.dll) Version: 13.0.131
Syntax
C#
public override Task<CultureInfo> 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: TaskCultureInfo
Returns a task returning either an instance of CultureInfo corresponding to name or null.

Implements

IInfoByNameProviderTInfoGetAsync(String, NullableCancellationToken)
IInfoByNameProviderTInfoGetAsync(String, NullableCancellationToken)
See Also