Click or drag to resize
IConsentAgreementServiceAgree Method
Inserts an agreement of the given consent and 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
)

Parameters

contact
Type: CMS.ContactManagementContactInfo
Contact
consent
Type: CMS.DataProtectionConsentInfo
Consent

Return Value

Type: ConsentAgreementInfo
Returns the agreement.
Exceptions
ExceptionCondition
ArgumentNullExceptioncontact is null -or consent is null
Remarks
If an active agreement already exists then this active agreement is kept and its hash is updated with a one from the given consent.
See Also