Class ConsentArchiveInfoExtensions
- Namespace
- CMS.DataProtection
- Assembly
- CMS.DataProtection.dll
Extension methods for ConsentArchiveInfo.
public static class ConsentArchiveInfoExtensions
- Inheritance
-
objectConsentArchiveInfoExtensions
Methods
GetConsentLanguages(ConsentArchiveInfo)
Gets collection of the consent's language variant names within the ConsentArchiveContent.
public static IEnumerable<string> GetConsentLanguages(this ConsentArchiveInfo consentArchive)
Parameters
consentArchiveConsentArchiveInfo
Returns
- IEnumerable<string>
GetConsentText(ConsentArchiveInfo, string)
Gets consent's text for specific languageName.
public static ConsentText GetConsentText(this ConsentArchiveInfo consentArchive, string languageName)
Parameters
consentArchiveConsentArchiveInfoConsent archive for which the text gets retrieved.
languageNamestringLanguage of the consent.
Returns
- ConsentText
Language specific consent's text.
Exceptions
- ArgumentNullException
Thrown when
consentArchiveis null.- ArgumentNullException
Thrown when
languageNameis null.