Click or drag to resize
IFormConsentAgreementServiceAgree Method
Agrees the given consent with the given contact.

Namespace: CMS.DataProtection
Assembly: CMS.DataProtection (in CMS.DataProtection.dll) Version: 11.0.0
Syntax
C#
ConsentAgreementInfo Agree(
	ContactInfo contact,
	ConsentInfo consent,
	BaseInfo data
)

Parameters

contact
Type: CMS.ContactManagementContactInfo
Contact.
consent
Type: CMS.DataProtectionConsentInfo
Consent.
data
Type: CMS.DataEngineBaseInfo
Info object being edited by the form.

Return Value

Type: ConsentAgreementInfo
The agreement.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when consent or data is null.
Remarks
When contact is null, ensures contact and maps data to a contact based on mapping configuration of an object.
See Also