Click or drag to resize
IConsentAgreementServiceIsAgreed Method
Indicates whether the given contact has agreed with the specified consent.

Namespace: CMS.DataProtection
Assembly: CMS.DataProtection (in CMS.DataProtection.dll) Version: 11.0.0
Syntax
C#
bool IsAgreed(
	ContactInfo contact,
	ConsentInfo consent
)

Parameters

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

Return Value

Type: Boolean
Returns true when the given contact agreed with the specified consent and is still valid.
Exceptions
ExceptionCondition
ArgumentNullExceptioncontact is null -or consent is null
See Also