ConsentInfoExtensionsUpsertConsentText Method |
Adds new or updates existing consent language version.
Namespace: CMS.DataProtectionAssembly: CMS.DataProtection (in CMS.DataProtection.dll) Version: 13.0.131
Syntax 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 Exception | Condition |
---|
ArgumentNullException | Thrown when consent is null. |
ArgumentException | Thrown when cultureCode is null or empty. |
ArgumentNullException | Thrown when shortText is null. |
ArgumentNullException | Thrown when fullText is null. |
See Also