Kentico 12 Service Pack API Reference
Kentico 12 Service Pack API Reference
Namespaces
CMS Namespaces
CMS.DataProtection Namespaces
CMS.DataProtection
IConsentAgreementService Interface
IConsentAgreementService Methods
Agree Method
GetAgreedConsents Method
IsAgreed Method
Revoke Method
IConsentAgreementService
IsAgreed Method
Indicates whether the given
contact
has agreed with the specified
consent
.
Namespace:
CMS.DataProtection
Assembly:
CMS.DataProtection (in CMS.DataProtection.dll) Version: 12.0.0
Syntax
C#
Copy
bool
IsAgreed
(
ContactInfo
contact
,
ConsentInfo
consent
)
Parameters
contact
Type:
CMS.ContactManagement
ContactInfo
Contact.
consent
Type:
CMS.DataProtection
ConsentInfo
Consent.
Return Value
Type:
Boolean
Returns
true
when the given contact agreed with the specified consent and is still valid.
Exceptions
Exception
Condition
ArgumentNullException
contact
is
null
-or
consent
is
null
See Also
Reference
IConsentAgreementService Interface
CMS.DataProtection Namespace
Copyright (c) 2019 Kentico Software
Send comments on this topic to
support@kentico.com