Click or drag to resize
ConsentArchiveInfoExtensionsGetConsentText Method
Gets consent's text for specific cultureCode.

Namespace: CMS.DataProtection
Assembly: CMS.DataProtection (in CMS.DataProtection.dll) Version: 12.0.0
Syntax
C#
public static ConsentText GetConsentText(
	this ConsentArchiveInfo consentArchive,
	string cultureCode
)

Parameters

consentArchive
Type: CMS.DataProtectionConsentArchiveInfo
Consent archive for which the text gets retrieved.
cultureCode
Type: SystemString
Culture code of consent.

Return Value

Type: ConsentText
Language specific consent's text.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ConsentArchiveInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when consentArchive is null.
ArgumentNullExceptionThrown when cultureCode is null.
See Also