Click or drag to resize
ConsentInfoExtensionsGetConsentText 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 ConsentInfo consent,
	string cultureCode
)

Parameters

consent
Type: CMS.DataProtectionConsentInfo
Consent 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 ConsentInfo. 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 consent is null.
ArgumentExceptionThrown when cultureCode is null or empty.
See Also