Interface IResourceTranslationInfoProvider
- Namespace
- CMS.Localization
- Assembly
- CMS.Globalization.dll
Declares members for ResourceTranslationInfo management.
[Obsolete("This API was not intended for public use.")]
[ObsoleteSince(29, 1)]
public interface IResourceTranslationInfoProvider : IInfoProvider<ResourceTranslationInfo>, IInfoByIdProvider<ResourceTranslationInfo>
- Inherited Members
- Extension Methods
Methods
Add(int, int, string)
Creates ResourceTranslationInfo binding.
void Add(int resourceStringId, int cultureId, string translationText)
Parameters
resourceStringId
intResource string ID.
cultureId
intCulture ID.
translationText
stringTranslation text.
Get(int, int)
Gets an instance of the ResourceTranslationInfo binding structure.
ResourceTranslationInfo Get(int resourceStringId, int cultureId)
Parameters
resourceStringId
intResource string ID.
cultureId
intCulture ID.
Returns
- ResourceTranslationInfo
Returns an instance of ResourceTranslationInfo corresponding to given identifiers or null.
GetAsync(int, int, CancellationToken?)
Asynchronously gets an instance of the ResourceTranslationInfo binding structure.
Task<ResourceTranslationInfo> GetAsync(int resourceStringId, int cultureId, CancellationToken? cancellationToken = null)
Parameters
resourceStringId
intResource string ID.
cultureId
intCulture ID.
cancellationToken
CancellationToken?The cancellation instruction.
Returns
- Task<ResourceTranslationInfo>
Returns a task returning either an instance of ResourceTranslationInfo corresponding to given identifiers or null.
Remove(int, int)
Deletes ResourceTranslationInfo binding.
void Remove(int resourceStringId, int cultureId)
Parameters
resourceStringId
intResource string ID.
cultureId
intCulture ID.