Click or drag to resize
ConsentInfoExtensionsUpsertConsentText Method
Adds new or updates existing consent language version.

Namespace: CMS.DataProtection
Assembly: CMS.DataProtection (in CMS.DataProtection.dll) Version: 12.0.0
Syntax
C#
public static void UpsertConsentText(
	this ConsentInfo consent,
	string cultureCode,
	string shortText,
	string fullText
)

Parameters

consent
Type: CMS.DataProtectionConsentInfo
Consent info.
cultureCode
Type: SystemString
Culture code of consent.
shortText
Type: SystemString
Short text of consent.
fullText
Type: SystemString
Full text of consent.

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.
ArgumentNullExceptionThrown when shortText is null.
ArgumentNullExceptionThrown when fullText is null.
See Also